[llvm-commits] CVS: reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Jan 30 15:55:05 PST 2004
Changes in directory reopt/lib/LightWtProfiling:
RuntimeOptimizations.cpp updated: 1.19 -> 1.20
---
Log message:
Add/fix up banners on code-printing passes. Make sure they all go to cerr.
---
Diffs of the changes: (+4 -3)
Index: reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp
diff -u reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.19 reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.20
--- reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp:1.19 Fri Jan 16 13:16:04 2004
+++ reopt/lib/LightWtProfiling/RuntimeOptimizations.cpp Fri Jan 30 15:53:57 2004
@@ -65,12 +65,13 @@
// UnpackTraceFunction.
FunctionPassManager PM (MP);
PM.add (new PrintFunctionPass ("Function created from trace for "
- + T.getFunction ()->getName ()));
+ + T.getFunction ()->getName () + ":\n",
+ &std::cerr));
PM.add (createVerifierPass ());
Target->getJITInfo ()->addPassesToJITCompile (PM);
- PM.add (createMachineFunctionPrinterPass ());
+ PM.add (createMachineFunctionPrinterPass (&std::cerr, "Before unpacking:\n"));
PM.add (createUnpackTraceFunctionPass (Target, TF));
- PM.add (createMachineFunctionPrinterPass ());
+ PM.add (createMachineFunctionPrinterPass (&std::cerr, "After unpacking:\n"));
PM.run (*TF->TraceFn);
}
More information about the llvm-commits
mailing list