[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Thu Jan 22 16:55:04 PST 2004


Changes in directory reopt/lib/LightWtProfiling:

UnpackTraceFunction.cpp updated: 1.31 -> 1.32

---
Log message:

Tweak DEBUG output.


---
Diffs of the changes:  (+7 -1)

Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.31 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.32
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.31	Fri Jan 16 13:17:16 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp	Thu Jan 22 16:54:06 2004
@@ -143,8 +143,10 @@
 static unsigned getSavedStateIndexOfInstruction (const Function *F,
                                                  const Instruction *I) {
   unsigned Key = 0;
+  DEBUG(std::cerr << "getSavedStateIndexOfInstruction(F = " << F->getName()
+        << "(), I = " << *I << ")\n");
   for (const_inst_iterator II=inst_begin (F), IE=inst_end (F); II!=IE; ++II) {
-    if (*II == I) return Key;
+    if (*II == I) { DEBUG(std::cerr << "--> returns " << Key << "\n"); return Key;}
     ++Key;
   }
   // By this time we had better have found it, otherwise we are about to do bad
@@ -158,6 +160,10 @@
 static unsigned getSavedStateIndexOfOperandInInstruction (Function *F, Value *V,
                                                           unsigned VI) {
   // FIXME; not yet implemented
+  DEBUG(std::cerr << "getSavedStateIndexOfOperandInInstruction(F = "
+        << F->getName() << "(), V = " << *V <<", VI = " << VI << ")\n");
+  std::cerr
+    << "** getSavedStateIndexOfOperandInInstruction() NOT YET IMPLEMENTED **\n";
   abort ();
 }
 





More information about the llvm-commits mailing list