[llvm-commits] CVS: reopt/lib/LightWtProfiling/TraceOptEmitter.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Apr 27 13:35:07 PDT 2004
Changes in directory reopt/lib/LightWtProfiling:
TraceOptEmitter.cpp updated: 1.6 -> 1.7
---
Log message:
Keep track of where TraceFns get their code generated to (like the JIT does).
---
Diffs of the changes: (+3 -0)
Index: reopt/lib/LightWtProfiling/TraceOptEmitter.cpp
diff -u reopt/lib/LightWtProfiling/TraceOptEmitter.cpp:1.6 reopt/lib/LightWtProfiling/TraceOptEmitter.cpp:1.7
--- reopt/lib/LightWtProfiling/TraceOptEmitter.cpp:1.6 Fri Apr 23 16:40:57 2004
+++ reopt/lib/LightWtProfiling/TraceOptEmitter.cpp Tue Apr 27 13:34:46 2004
@@ -98,6 +98,9 @@
// Round up to a 64-bit word boundary.
CurBlock = (unsigned char*)(((intptr_t)CurFunctionPtr + 7) & ~7);
CurByte = CurBlock;
+
+ // Remember where we started generating this function.
+ addGlobalMapping (F.getFunction (), (uint64_t) CurByte);
}
void TraceOptEmitter::finishFunction(MachineFunction &F) {
More information about the llvm-commits
mailing list