summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2008-10-14 10:04:52 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2008-10-14 10:04:52 +0000
commita67f06b9c7d72a2666a447bce7b6117f976ca076 (patch)
treed69e9cc6564464d7d376030a7ca5819340f6b50b /llvm/lib/ExecutionEngine/ExecutionEngine.cpp
parent6e9c3cbe304f0d1c41e8f53e4a87cd1dc912c803 (diff)
downloadbcm5719-llvm-a67f06b9c7d72a2666a447bce7b6117f976ca076.tar.gz
bcm5719-llvm-a67f06b9c7d72a2666a447bce7b6117f976ca076.zip
little optimization: reuse getPointerToGlobalIfAvailable(CGV) value in emitGlobals()
llvm-svn: 57484
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index acc89c9e858..55151cb1d5a 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -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);
}
}
OpenPOWER on IntegriCloud