[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/Emitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Nov 20 19:44:44 PST 2004
Changes in directory llvm/lib/ExecutionEngine/JIT:
Emitter.cpp updated: 1.51 -> 1.52
---
Log message:
Clean up DEBUG output
---
Diffs of the changes: (+5 -5)
Index: llvm/lib/ExecutionEngine/JIT/Emitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.51 llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.52
--- llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.51 Sat Nov 20 21:37:42 2004
+++ llvm/lib/ExecutionEngine/JIT/Emitter.cpp Sat Nov 20 21:44:32 2004
@@ -155,6 +155,9 @@
// 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 @@
// 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 @@
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::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;
More information about the llvm-commits
mailing list