aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-07-29 22:41:10 +0000
committerDouglas Gregor <dgregor@apple.com>2009-07-29 22:41:10 +0000
commitf485b3bbab86274161e2b56e829b404cce227675 (patch)
treeadc60f113dceb811a09bd9ca82e7a9be62a057b8 /lib/Analysis
parentaa993142518648c1ffa61e7f52ff6d3a95d413fb (diff)
downloadexternal_llvm-f485b3bbab86274161e2b56e829b404cce227675.zip
external_llvm-f485b3bbab86274161e2b56e829b404cce227675.tar.gz
external_llvm-f485b3bbab86274161e2b56e829b404cce227675.tar.bz2
Eliminate a few unused-variable warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/DebugInfo.cpp1
-rw-r--r--lib/Analysis/LoopVR.cpp2
2 files changed, 0 insertions, 3 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index 7ff1de6..433e700 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -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;
diff --git a/lib/Analysis/LoopVR.cpp b/lib/Analysis/LoopVR.cpp
index 8ffac63..921d6ce 100644
--- a/lib/Analysis/LoopVR.cpp
+++ b/lib/Analysis/LoopVR.cpp
@@ -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