diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-07-29 19:14:17 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-07-29 19:14:17 +0000 |
commit | 6c1e983a1756e914b328644e6cab7b4a39eb7853 (patch) | |
tree | 07aa57e41f52dc1c1feb4ae7e906e22f91c3cd49 | |
parent | baf3c404409d5e47b13984a7f95bfbd6d1f2e79e (diff) | |
download | external_llvm-6c1e983a1756e914b328644e6cab7b4a39eb7853.zip external_llvm-6c1e983a1756e914b328644e6cab7b4a39eb7853.tar.gz external_llvm-6c1e983a1756e914b328644e6cab7b4a39eb7853.tar.bz2 |
Remove now unused Context variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77495 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 1 | ||||
-rw-r--r-- | lib/Linker/LinkModules.cpp | 4 | ||||
-rw-r--r-- | lib/Transforms/Utils/LowerSwitch.cpp | 1 |
3 files changed, 0 insertions, 6 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index e3709a5..e4b71b1 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -337,7 +337,6 @@ static SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP, SelectionDAG &DAG, const TargetLowering &TLI) { bool Extend = false; DebugLoc dl = CFP->getDebugLoc(); - LLVMContext *Context = DAG.getContext(); // If a FP immediate is precise when represented as a float and if the // target can do an extending load from float to double, we put it into diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index b6daac3..75da6bf 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -537,7 +537,6 @@ static bool LinkGlobals(Module *Dest, const Module *Src, std::multimap<std::string, GlobalVariable *> &AppendingVars, std::string *Err) { ValueSymbolTable &DestSymTab = Dest->getValueSymbolTable(); - LLVMContext &Context = Dest->getContext(); // Loop over all of the globals in the src module, mapping them over as we go for (Module::const_global_iterator I = Src->global_begin(), @@ -724,8 +723,6 @@ CalculateAliasLinkage(const GlobalValue *SGV, const GlobalValue *DGV) { static bool LinkAlias(Module *Dest, const Module *Src, std::map<const Value*, Value*> &ValueMap, std::string *Err) { - LLVMContext &Context = Dest->getContext(); - // Loop over all alias in the src module for (Module::const_alias_iterator I = Src->alias_begin(), E = Src->alias_end(); I != E; ++I) { @@ -931,7 +928,6 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src, std::map<const Value*, Value*> &ValueMap, std::string *Err) { ValueSymbolTable &DestSymTab = Dest->getValueSymbolTable(); - LLVMContext &Context = Dest->getContext(); // Loop over all of the functions in the src module, mapping them over for (Module::const_iterator I = Src->begin(), E = Src->end(); I != E; ++I) { diff --git a/lib/Transforms/Utils/LowerSwitch.cpp b/lib/Transforms/Utils/LowerSwitch.cpp index c330a48..4cc92e9 100644 --- a/lib/Transforms/Utils/LowerSwitch.cpp +++ b/lib/Transforms/Utils/LowerSwitch.cpp @@ -177,7 +177,6 @@ BasicBlock* LowerSwitch::newLeafBlock(CaseRange& Leaf, Value* Val, BasicBlock* Default) { Function* F = OrigBlock->getParent(); - LLVMContext &Context = F->getContext(); BasicBlock* NewLeaf = BasicBlock::Create("LeafBlock"); Function::iterator FI = OrigBlock; F->getBasicBlockList().insert(++FI, NewLeaf); |