mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
little optimization: reuse getPointerToGlobalIfAvailable(CGV) value in emitGlobals()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57484 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ba2379906
commit
c8ed902298
@ -963,7 +963,7 @@ void ExecutionEngine::emitGlobals() {
|
||||
LinkedGlobalsMap[std::make_pair(GV->getName(), GV->getType())];
|
||||
void *Ptr = getPointerToGlobalIfAvailable(CGV);
|
||||
assert(Ptr && "Canonical global wasn't codegen'd!");
|
||||
addGlobalMapping(GV, getPointerToGlobalIfAvailable(CGV));
|
||||
addGlobalMapping(GV, Ptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user