Debugging output tweak.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 5 Nov 2008 00:22:28 +0000 (00:22 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 5 Nov 2008 00:22:28 +0000 (00:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58737 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/ExecutionEngine.cpp

index ad8dcfb9236f66334271481155edbb4cbf18d08d..18d44816fcf3d9c43a546538e2ae1a32d83bd26b 100644 (file)
@@ -94,7 +94,7 @@ Function *ExecutionEngine::FindFunctionNamed(const char *FnName) {
 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) {
   MutexGuard locked(lock);
 
-  DOUT << "Map " << *GV << " to " << Addr << "\n";  
+  DOUT << "Map \'" << GV->getNameStart() << "\' to " << Addr << "\n";  
   void *&CurVal = state.getGlobalAddressMap(locked)[GV];
   assert((CurVal == 0 || Addr == 0) && "GlobalMapping already established!");
   CurVal = Addr;
@@ -839,7 +839,7 @@ void ExecutionEngine::LoadValueFromMemory(GenericValue &Result,
 // specified memory location...
 //
 void ExecutionEngine::InitializeMemory(const Constant *Init, void *Addr) {
-  DOUT << "Initializing " << Addr;
+  DOUT << "Initializing " << Addr << " ";
   DEBUG(Init->dump());
   if (isa<UndefValue>(Init)) {
     return;