mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
Change the interface to constant expressions to allow automatic folding
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5793 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -207,7 +207,7 @@ static bool ResolveGlobalVariables(Module &M,
|
||||
std::vector<Constant*> Args;
|
||||
Args.push_back(Constant::getNullValue(Type::LongTy));
|
||||
Args.push_back(Constant::getNullValue(Type::LongTy));
|
||||
ConstantExpr *Replacement =
|
||||
Constant *Replacement =
|
||||
ConstantExpr::getGetElementPtr(ConstantPointerRef::get(Concrete), Args);
|
||||
|
||||
for (unsigned i = 0; i != Globals.size(); ++i)
|
||||
|
||||
Reference in New Issue
Block a user