aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/JIT/JITEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-21 03:44:32 +0000
committerChris Lattner <sabre@nondot.org>2004-11-21 03:44:32 +0000
commitcb47941556800369216c062dcee8dcab7cd39ee9 (patch)
tree2a61d42f99f2fdcd7c667ae855d58194ade80f2d /lib/ExecutionEngine/JIT/JITEmitter.cpp
parent5e225588530f641d6627becadffdd7d285bfcdba (diff)
Clean up DEBUG output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JITEmitter.cpp')
-rw-r--r--lib/ExecutionEngine/JIT/JITEmitter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp
index 7f41af3a9e..52fb2e31ac 100644
--- a/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/lib/ExecutionEngine/JIT/JITEmitter.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;