diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2008-10-14 10:04:52 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2008-10-14 10:04:52 +0000 |
commit | a67f06b9c7d72a2666a447bce7b6117f976ca076 (patch) | |
tree | d69e9cc6564464d7d376030a7ca5819340f6b50b /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 6e9c3cbe304f0d1c41e8f53e4a87cd1dc912c803 (diff) | |
download | bcm5719-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.cpp | 2 |
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); } } |