forked from OSchip/llvm-project
little optimization: reuse getPointerToGlobalIfAvailable(CGV) value in emitGlobals()
llvm-svn: 57484
This commit is contained in:
parent
6e9c3cbe30
commit
a67f06b9c7
|
@ -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