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

Brian Gaeke gaeke at cs.uiuc.edu
Fri Jan 16 11:15:01 PST 2004


Changes in directory reopt/lib/LightWtProfiling:

UnpackTraceFunction.cpp updated: 1.28 -> 1.29

---
Log message:

Revise stub of runOnMachineFunction()

---
Diffs of the changes:  (+6 -3)

Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.28 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.29
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.28	Fri Jan 16 11:02:17 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp	Fri Jan 16 11:14:22 2004
@@ -287,9 +287,12 @@
 }
 
 bool UnpackTraceFunction::runOnMachineFunction (MachineFunction &MF) {
-  // This is pretty lame, but for now, we can only have one TraceFn
-  // corresponding to one MatrixFn in an UnpackTraceFunction pass.
-
+  // This is pretty lame, but for now, we can only deal with one
+  // TraceFn and one MatrixFn in any given UnpackTraceFunction pass.
+  if (MF.getFunction () != TF->TraceFn)
+    return false;
+  
+  // not finished yet
   return false;
 }
 





More information about the llvm-commits mailing list