[llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 8 13:34:00 PST 2004
Changes in directory llvm/lib/ExecutionEngine:
ExecutionEngine.cpp updated: 1.46 -> 1.47
---
Log message:
Print out all globals as they are emitted, not just those emitted from
emitGlobals
---
Diffs of the changes: (+2 -3)
Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.46 llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.47
--- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.46 Sat Jan 31 19:07:25 2004
+++ llvm/lib/ExecutionEngine/ExecutionEngine.cpp Sun Feb 8 13:33:23 2004
@@ -454,9 +454,6 @@
// Allocate some memory for it!
unsigned Size = TD.getTypeSize(Ty);
addGlobalMapping(I, new char[Size]);
-
- DEBUG(std::cerr << "Global '" << I->getName() << "' -> "
- << getPointerToGlobal(I) << "\n");
} else {
// External variable reference. Try to use the dynamic loader to
// get a pointer to it.
@@ -482,6 +479,8 @@
// already in the map.
void ExecutionEngine::EmitGlobalVariable(const GlobalVariable *GV) {
void *GA = getPointerToGlobalIfAvailable(GV);
+ DEBUG(std::cerr << "Global '" << GV->getName() << "' -> " << GA << "\n");
+
const Type *ElTy = GV->getType()->getElementType();
if (GA == 0) {
// If it's not already specified, allocate memory for the global.
More information about the llvm-commits
mailing list