summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-11-23 03:26:09 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-11-23 03:26:09 +0000
commit4e3b3f3d9215e8da98f0b224ec0d851ae44f2e0b (patch)
tree39efb16d36567c35f4c5835ea2cf9d9e14efca71 /llvm/lib/Analysis/ScalarEvolution.cpp
parent56dd5f0f704c3e7aea41ccb6958a01312afbed4e (diff)
downloadbcm5719-llvm-4e3b3f3d9215e8da98f0b224ec0d851ae44f2e0b.tar.gz
bcm5719-llvm-4e3b3f3d9215e8da98f0b224ec0d851ae44f2e0b.zip
Remove dead LLVMContext argument.
llvm-svn: 89641
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index ea4af40ea74..c6835ef0855 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -3644,7 +3644,7 @@ EvaluateConstantChrecAtConstant(const SCEVAddRecExpr *AddRec, ConstantInt *C,
/// the addressed element of the initializer or null if the index expression is
/// invalid.
static Constant *
-GetAddressedElementFromGlobal(LLVMContext &Context, GlobalVariable *GV,
+GetAddressedElementFromGlobal(GlobalVariable *GV,
const std::vector<ConstantInt*> &Indices) {
Constant *Init = GV->getInitializer();
for (unsigned i = 0, e = Indices.size(); i != e; ++i) {
@@ -3732,7 +3732,7 @@ ScalarEvolution::ComputeLoadConstantCompareBackedgeTakenCount(
// Form the GEP offset.
Indexes[VarIdxNum] = Val;
- Constant *Result = GetAddressedElementFromGlobal(getContext(), GV, Indexes);
+ Constant *Result = GetAddressedElementFromGlobal(GV, Indexes);
if (Result == 0) break; // Cannot compute!
// Evaluate the condition for this iteration.
OpenPOWER on IntegriCloud