Constants for profile info type changed names to match the C++ ones.
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 4 May 2004 16:51:47 +0000 (16:51 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 4 May 2004 16:51:47 +0000 (16:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13344 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/libprofile/BasicBlockTracing.c
runtime/libprofile/CommonProfiling.c
runtime/libprofile/FunctionProfiling.c

index 00136330212e2034db2be7a3a0b076f75603e0c5..e70dc0528432ad2b8b033875ee72350b600ba4a6 100644 (file)
@@ -23,7 +23,7 @@ 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;
 }
 
index aeb9c606e4e34eda3a625e3b8066ac230d310077..16bd9bd4c53928befec0472b3319a0433c22a0cc 100644 (file)
@@ -99,7 +99,7 @@ void write_profiling_data(enum ProfilingType PT, unsigned *Start,
 
     /* Output the command line arguments to the file. */
     {
-      int PTy = Arguments;
+      int PTy = ArgumentInfo;
       int Zeros = 0;
       write(OutFile, &PTy, sizeof(int));
       write(OutFile, &SavedArgsLength, sizeof(unsigned));
index 5f9c4f2e388a396f3613aacb871fbb7c6ce699f1..d030053094bc6d1b4f733afea2882756ae18ec2e 100644 (file)
@@ -25,7 +25,7 @@ static unsigned NumElements;
 static void FuncProfAtExitHandler() {
   /* Just write out the data we collected.
    */
-  write_profiling_data(Function, ArrayStart, NumElements);
+  write_profiling_data(FunctionInfo, ArrayStart, NumElements);
 }