diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-11-07 22:30:29 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-11-07 22:30:29 +0000 |
commit | 366cf29ca537057341ecbad03ab8f9bc52f731e7 (patch) | |
tree | 9ae8c2c65a4fb3ab27e5cad2ef953633533715c6 /lib/ExecutionEngine | |
parent | 212e6983eb7f209d1308c2b489af7c483bda511e (diff) | |
download | external_llvm-366cf29ca537057341ecbad03ab8f9bc52f731e7.zip external_llvm-366cf29ca537057341ecbad03ab8f9bc52f731e7.tar.gz external_llvm-366cf29ca537057341ecbad03ab8f9bc52f731e7.tar.bz2 |
More debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 2 | ||||
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 7cc9b93..1834655 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -94,7 +94,7 @@ Function *ExecutionEngine::FindFunctionNamed(const char *FnName) { void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) { MutexGuard locked(lock); - DOUT << "JIT: Map \'" << GV->getNameStart() << "\' to " << Addr << "\n"; + DOUT << "JIT: Map \'" << GV->getNameStart() << "\' to [" << Addr << "]\n"; void *&CurVal = state.getGlobalAddressMap(locked)[GV]; assert((CurVal == 0 || Addr == 0) && "GlobalMapping already established!"); CurVal = Addr; diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 4ee82fd..06c195a 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -226,7 +226,7 @@ unsigned JITResolver::getGOTIndexForAddr(void* addr) { if (!idx) { idx = ++nextGOTIndex; revGOTMap[addr] = idx; - DOUT << "JIT: Adding GOT entry " << idx << " for addr " << addr << "\n"; + DOUT << "JIT: Adding GOT entry " << idx << " for addr [" << addr << "]\n"; } return idx; } @@ -533,6 +533,8 @@ namespace { if (MBBLocations.size() <= (unsigned)MBB->getNumber()) MBBLocations.resize((MBB->getNumber()+1)*2); MBBLocations[MBB->getNumber()] = getCurrentPCValue(); + DOUT << "JIT: Emitting BB" << MBB->getNumber() << " at [" + << (void*) getCurrentPCValue() << "]\n"; } virtual intptr_t getConstantPoolEntryAddress(unsigned Entry) const; |