Remove "localize global" optimization
[oota-llvm.git] / runtime / libprofile / BasicBlockTracing.c
index 00136330212e2034db2be7a3a0b076f75603e0c5..0815e2e516a0b26b2956c24ea046b789eea6b57a 100644 (file)
@@ -2,8 +2,8 @@
 |*
 |*                     The LLVM Compiler Infrastructure
 |*
-|* This file was developed by the LLVM research group and is distributed under
-|* the University of Illinois Open Source License. See LICENSE.TXT for details.
+|* This file is distributed under the University of Illinois Open Source
+|* License. See LICENSE.TXT for details.
 |* 
 |*===----------------------------------------------------------------------===*|
 |* 
@@ -23,14 +23,14 @@ static unsigned *ArrayStart, *ArrayEnd, *ArrayCursor;
  * and reset the cursor to point to the beginning of the buffer.
  */
 static void WriteAndFlushBBTraceData () {
-  write_profiling_data(BBTrace, ArrayStart, (ArrayCursor - ArrayStart));
+  write_profiling_data(BBTraceInfo, ArrayStart, (ArrayCursor - ArrayStart));
   ArrayCursor = ArrayStart;
 }
 
 /* BBTraceAtExitHandler - When the program exits, just write out any remaining 
  * data and free the trace buffer.
  */
-static void BBTraceAtExitHandler() {
+static void BBTraceAtExitHandler(void) {
   WriteAndFlushBBTraceData ();
   free (ArrayStart);
 }