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

Brian Gaeke gaeke at cs.uiuc.edu
Sun May 16 00:24:09 PDT 2004


Changes in directory reopt/lib/LightWtProfiling:

Initialization.cpp updated: 1.16 -> 1.17

---
Log message:

Change reoptimizerInitialize() to use the same signature as the other
profiling init calls.


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

Index: reopt/lib/LightWtProfiling/Initialization.cpp
diff -u reopt/lib/LightWtProfiling/Initialization.cpp:1.16 reopt/lib/LightWtProfiling/Initialization.cpp:1.17
--- reopt/lib/LightWtProfiling/Initialization.cpp:1.16	Fri Apr 23 16:40:57 2004
+++ reopt/lib/LightWtProfiling/Initialization.cpp	Sun May 16 00:23:57 2004
@@ -72,7 +72,9 @@
 /// the opt -instloops pass
 /// (Transforms/Instrumentation/ProfilePaths/InstLoops.cpp).
 ///
-extern "C" void reoptimizerInitialize(){
+extern "C"
+int reoptimizerInitialize(int argc, const char **argv,
+                          unsigned *arrayStart, unsigned numElements) {
   cl::ParseEnvironmentOptions ("reopt", "LLVM_REOPT",
 			       " llvm dynamic optimizer");
   vm = new VirtualMem();
@@ -84,6 +86,8 @@
   // Set up the phase-change detection stuff (normally disabled).
   if (enable_phase_detect)
     initialize_timer();
+
+  return argc;
 }
 
 /// Initialization method for the reoptimizer that parses the bytecode





More information about the llvm-commits mailing list