Eliminate a few unused-variable warnings
authorDouglas Gregor <dgregor@apple.com>
Wed, 29 Jul 2009 22:41:10 +0000 (22:41 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 29 Jul 2009 22:41:10 +0000 (22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77519 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DebugInfo.cpp
lib/Analysis/LoopVR.cpp
lib/Transforms/IPO/ExtractGV.cpp
lib/Transforms/Scalar/LoopStrengthReduce.cpp

index 7ff1de6351bee50316ca9a8a20ac30cbf0995756..433e700972750faeb8d29626831918ed66f7da11 100644 (file)
@@ -1070,7 +1070,6 @@ namespace llvm {
 
   Value *findDbgGlobalDeclare(GlobalVariable *V) {
     const Module *M = V->getParent();
-    LLVMContext& Context = M->getContext();
     
     const Type *Ty = M->getTypeByName("llvm.dbg.global_variable.type");
     if (!Ty) return 0;
index 8ffac633d03c0cc0c8e581603594109e2787db78..921d6ce06e91bcd6ffab3de76cecb9d3ff0db97c 100644 (file)
@@ -43,8 +43,6 @@ ConstantRange LoopVR::getRange(const SCEV *S, const SCEV *T, ScalarEvolution &SE
   if (const SCEVConstant *C = dyn_cast<SCEVConstant>(S))
     return ConstantRange(C->getValue()->getValue());
     
-  LLVMContext &Context = SE.getContext();
-
   ConstantRange FullSet(cast<IntegerType>(S->getType())->getBitWidth(), true);
 
   // {x,+,y,+,...z}. We detect overflow by checking the size of the set after
index dfbad61cf5d8f7ebc1b47ce519642ff6b064449b..f80a087c7c1d5fac134d62016c4002433dcb5296 100644 (file)
@@ -86,8 +86,6 @@ namespace {
     }
 
     bool isolateGV(Module &M) {
-      LLVMContext &Context = M.getContext();
-      
       // Mark all globals internal
       // FIXME: what should we do with private linkage?
       for (Module::global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
index 619e1f10935f0b3273ac8281683b3e2af62b7ee4..df72d417457e4ba3932568c1ad0935138e114371 100644 (file)
@@ -1862,8 +1862,6 @@ ICmpInst *LoopStrengthReduce::ChangeCompareStride(Loop *L, ICmpInst *Cond,
   const SCEVConstant *SC = dyn_cast<SCEVConstant>(*CondStride);
   if (!SC) return Cond;
 
-  LLVMContext &Context = Cond->getContext();
-
   ICmpInst::Predicate Predicate = Cond->getPredicate();
   int64_t CmpSSInt = SC->getValue()->getSExtValue();
   unsigned BitWidth = SE->getTypeSizeInBits((*CondStride)->getType());