mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-20 18:48:13 +00:00
little optimization: reuse getPointerToGlobalIfAvailable(CGV) value in emitGlobals()
llvm-svn: 57484
This commit is contained in:
parent
8fe4eac94c
commit
08a1a82acc
@ -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