[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon May 15 23:46:02 PDT 2006
Changes in directory llvm/lib/ExecutionEngine/JIT:
JITEmitter.cpp updated: 1.101 -> 1.102
---
Log message:
Make this print the right start pointer
---
Diffs of the changes: (+4 -2)
JITEmitter.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.101 llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.102
--- llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.101 Fri May 12 13:10:12 2006
+++ llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp Tue May 16 01:45:50 2006
@@ -815,9 +815,11 @@
}
}
- DEBUG(std::cerr << "JIT: Finished CodeGen of [" << (void*)BufferBegin
+ DEBUG(void *FnStart = TheJIT->getPointerToGlobalIfAvailable(F.getFunction());
+ char *FnEnd = (char*)getCurrentPCOffset();
+ std::cerr << "JIT: Finished CodeGen of [" << FnStart
<< "] Function: " << F.getFunction()->getName()
- << ": " << getCurrentPCOffset() << " bytes of text, "
+ << ": " << (FnEnd-(char*)FnStart) << " bytes of text, "
<< Relocations.size() << " relocations\n");
Relocations.clear();
return false;
More information about the llvm-commits
mailing list