diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-07-27 06:12:32 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-07-27 06:12:32 +0000 |
commit | 00b16889ab461b7ecef1c91ade101186b7f1fce2 (patch) | |
tree | 263acb2b05b59235d77bee1d38fa842f2044ec0e /tools/bugpoint | |
parent | 54eed36da595f09c46a46b2b0b15757ea486b4c1 (diff) | |
download | external_llvm-00b16889ab461b7ecef1c91ade101186b7f1fce2.zip external_llvm-00b16889ab461b7ecef1c91ade101186b7f1fce2.tar.gz external_llvm-00b16889ab461b7ecef1c91ade101186b7f1fce2.tar.bz2 |
Eliminate all remaining tabs and trailing spaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r-- | tools/bugpoint/ExecutionDriver.cpp | 2 | ||||
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index 142faee..852b489 100644 --- a/tools/bugpoint/ExecutionDriver.cpp +++ b/tools/bugpoint/ExecutionDriver.cpp @@ -324,7 +324,7 @@ bool BugDriver::diffProgram(const std::string &BytecodeFile, Output.eraseFromDisk(); // Remove the bytecode file if we are supposed to. - if (RemoveBytecode) + if (RemoveBytecode) sys::Path(BytecodeFile).eraseFromDisk(); return FilesDifferent; } diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index 9be7cd5..dc43126 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -692,7 +692,7 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, GlobalVariable *Cache = new GlobalVariable(F->getType(), false,GlobalValue::InternalLinkage, NullPtr,F->getName()+".fpcache", F->getParent()); - + // Construct a new stub function that will re-route calls to F const FunctionType *FuncTy = F->getFunctionType(); Function *FuncWrapper = new Function(FuncTy, @@ -702,13 +702,13 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, BasicBlock *EntryBB = new BasicBlock("entry", FuncWrapper); BasicBlock *DoCallBB = new BasicBlock("usecache", FuncWrapper); BasicBlock *LookupBB = new BasicBlock("lookupfp", FuncWrapper); - + // Check to see if we already looked up the value. Value *CachedVal = new LoadInst(Cache, "fpcache", EntryBB); Value *IsNull = new SetCondInst(Instruction::SetEQ, CachedVal, NullPtr, "isNull", EntryBB); new BranchInst(LookupBB, DoCallBB, IsNull, EntryBB); - + // Resolve the call to function F via the JIT API: // // call resolver(GetElementPtr...) @@ -721,11 +721,11 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, // Save the value in our cache. new StoreInst(CastedResolver, Cache, LookupBB); new BranchInst(DoCallBB, LookupBB); - + PHINode *FuncPtr = new PHINode(NullPtr->getType(), "fp", DoCallBB); FuncPtr->addIncoming(CastedResolver, LookupBB); FuncPtr->addIncoming(CachedVal, EntryBB); - + // Save the argument list. std::vector<Value*> Args; for (Function::arg_iterator i = FuncWrapper->arg_begin(), @@ -740,7 +740,7 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, CallInst *Call = new CallInst(FuncPtr, Args, "retval", DoCallBB); new ReturnInst(Call, DoCallBB); } - + // Use the wrapper function instead of the old function F->replaceAllUsesWith(FuncWrapper); } |