OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ba2379
)
little optimization: reuse getPointerToGlobalIfAvailable(CGV) value in emitGlobals()
author
Nuno Lopes
<nunoplopes@sapo.pt>
Tue, 14 Oct 2008 10:04:52 +0000
(10:04 +0000)
committer
Nuno Lopes
<nunoplopes@sapo.pt>
Tue, 14 Oct 2008 10:04:52 +0000
(10:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57484
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/ExecutionEngine.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/ExecutionEngine.cpp
b/lib/ExecutionEngine/ExecutionEngine.cpp
index
acc89c9
..
55151cb
100644
(file)
--- a/
lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/
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
);
}
}