diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-08 19:33:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-08 19:33:23 +0000 |
commit | 23c472436940aa7fc82ff99e8cca6788d08a8105 (patch) | |
tree | be71dcd2e7117f4f15173ffbb0f48f728afa9161 /lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 6c0398ed4702fdf33b4b3025c9ae466b558118ad (diff) |
Print out all globals as they are emitted, not just those emitted from
emitGlobals
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 5892d169e7..665b5c6273 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -454,9 +454,6 @@ void ExecutionEngine::emitGlobals() { // 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 @@ void ExecutionEngine::emitGlobals() { // 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. |