[llvm-commits] [llvm] r77519 - in /llvm/trunk/lib: Analysis/DebugInfo.cpp Analysis/LoopVR.cpp Transforms/IPO/ExtractGV.cpp Transforms/Scalar/LoopStrengthReduce.cpp
Douglas Gregor
dgregor at apple.com
Wed Jul 29 15:41:11 PDT 2009
Author: dgregor
Date: Wed Jul 29 17:41:10 2009
New Revision: 77519
URL: http://llvm.org/viewvc/llvm-project?rev=77519&view=rev
Log:
Eliminate a few unused-variable warnings
Modified:
llvm/trunk/lib/Analysis/DebugInfo.cpp
llvm/trunk/lib/Analysis/LoopVR.cpp
llvm/trunk/lib/Transforms/IPO/ExtractGV.cpp
llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Modified: llvm/trunk/lib/Analysis/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DebugInfo.cpp?rev=77519&r1=77518&r2=77519&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DebugInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/DebugInfo.cpp Wed Jul 29 17:41:10 2009
@@ -1070,7 +1070,6 @@
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;
Modified: llvm/trunk/lib/Analysis/LoopVR.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LoopVR.cpp?rev=77519&r1=77518&r2=77519&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LoopVR.cpp (original)
+++ llvm/trunk/lib/Analysis/LoopVR.cpp Wed Jul 29 17:41:10 2009
@@ -43,8 +43,6 @@
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
Modified: llvm/trunk/lib/Transforms/IPO/ExtractGV.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/ExtractGV.cpp?rev=77519&r1=77518&r2=77519&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/ExtractGV.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/ExtractGV.cpp Wed Jul 29 17:41:10 2009
@@ -86,8 +86,6 @@
}
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)
Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=77519&r1=77518&r2=77519&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Wed Jul 29 17:41:10 2009
@@ -1862,8 +1862,6 @@
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());
More information about the llvm-commits
mailing list