diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-11-21 03:44:32 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-11-21 03:44:32 +0000 |
| commit | 9de8e2225f389e0f2eb888be942576cc812faefc (patch) | |
| tree | 53312cf747fa9df2ccd89da104a9fbf4ed237d35 /llvm/lib/ExecutionEngine | |
| parent | 65f6638822fb23c38546f3396d063405d4cf84dd (diff) | |
| download | bcm5719-llvm-9de8e2225f389e0f2eb888be942576cc812faefc.tar.gz bcm5719-llvm-9de8e2225f389e0f2eb888be942576cc812faefc.zip | |
Clean up DEBUG output
llvm-svn: 18081
Diffstat (limited to 'llvm/lib/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/Emitter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp index 7f41af3a9eb..52fb2e31ac6 100644 --- a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp @@ -155,6 +155,9 @@ void *JITResolver::getFunctionStub(Function *F) { // resolver function. Stub = TheJIT->getJITInfo().emitFunctionStub((void*)LazyResolverFn, MCE); + DEBUG(std::cerr << "JIT: Stub emitted at [" << Stub << "] for function '" + << F->getName() << "\n"); + // Finally, keep track of the stub-to-Function mapping so that the // JITCompilerFn knows which function to compile! StubToFunctionMap[Stub] = F; @@ -178,7 +181,7 @@ void *JITResolver::JITCompilerFn(void *Stub) { // function is no longer called from this stub. JR.StubToFunctionMap.erase(I); - DEBUG(std::cerr << "Lazily resolving function '" << F->getName() + DEBUG(std::cerr << "JIT: Lazily resolving function '" << F->getName() << "' In stub ptr = " << Stub << " actual ptr = " << I->first << "\n"); @@ -312,7 +315,7 @@ void Emitter::finishFunction(MachineFunction &F) { Relocations.size()); } - DEBUG(std::cerr << "Finished CodeGen of [" << (void*)CurBlock + DEBUG(std::cerr << "JIT: Finished CodeGen of [" << (void*)CurBlock << "] Function: " << F.getFunction()->getName() << ": " << CurByte-CurBlock << " bytes of text, " << Relocations.size() << " relocations\n"); @@ -359,9 +362,6 @@ void Emitter::startFunctionStub(unsigned StubSize) { void *Emitter::finishFunctionStub(const Function *F) { NumBytes += CurByte-CurBlock; - DEBUG(std::cerr << "Finished CodeGen of [0x" << (void*)CurBlock - << "] Function stub for: " << (F ? F->getName() : "") - << ": " << CurByte-CurBlock << " bytes of text\n"); std::swap(CurBlock, SavedCurBlock); CurByte = SavedCurByte; return SavedCurBlock; |

