[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 20 09:29:32 PDT 2005
Changes in directory llvm/lib/ExecutionEngine/JIT:
JITEmitter.cpp updated: 1.68 -> 1.69
---
Log message:
count the number of relocations performed.
---
Diffs of the changes: (+3 -0)
JITEmitter.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.68 llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.69
--- llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.68 Tue Jul 12 10:51:55 2005
+++ llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp Wed Jul 20 11:29:20 2005
@@ -30,6 +30,7 @@
namespace {
Statistic<> NumBytes("jit", "Number of bytes of machine code compiled");
+ Statistic<> NumRelos("jit", "Number of relocations applied");
JIT *TheJIT = 0;
}
@@ -391,6 +392,8 @@
NumBytes += CurByte-CurBlock;
if (!Relocations.empty()) {
+ NumRelos += Relocations.size();
+
// Resolve the relocations to concrete pointers.
for (unsigned i = 0, e = Relocations.size(); i != e; ++i) {
MachineRelocation &MR = Relocations[i];
More information about the llvm-commits
mailing list