mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Remove dead LLVMContext argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
55bd8bd6eb
commit
c6501b13c0
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user