[llvm-commits] CVS: llvm/runtime/libprofile/Profiling.h

Brian Gaeke gaeke at cs.uiuc.edu
Tue May 4 11:52:02 PDT 2004


Changes in directory llvm/runtime/libprofile:

Profiling.h updated: 1.3 -> 1.4

---
Log message:

Share the profile info type enum with the C++ analysis libraries.
Add a documentation comment for write_profiling_data().


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

Index: llvm/runtime/libprofile/Profiling.h
diff -u llvm/runtime/libprofile/Profiling.h:1.3 llvm/runtime/libprofile/Profiling.h:1.4
--- llvm/runtime/libprofile/Profiling.h:1.3	Mon May  3 18:49:16 2004
+++ llvm/runtime/libprofile/Profiling.h	Tue May  4 11:51:48 2004
@@ -15,20 +15,16 @@
 #ifndef PROFILING_H
 #define PROFILING_H
 
+#include "llvm/Analysis/ProfileInfoTypes.h" /* for enum ProfilingType */
+
 /* save_arguments - Save argc and argv as passed into the program for the file
  * we output.
  */
 int save_arguments(int argc, const char **argv);
 
-enum ProfilingType {
-  Arguments = 1,   /* The command line argument block */
-  Function  = 2,   /* Function profiling information  */
-  Block     = 3,   /* Block profiling information     */
-  Edge      = 4,   /* Edge profiling information      */
-  Path      = 5,   /* Path profiling information      */
-  BBTrace   = 6    /* Basic block trace information   */
-};
-
+/* write_profiling_data - Write out a typed packet of profiling data to the
+ * current output file.
+ */
 void write_profiling_data(enum ProfilingType PT, unsigned *Start,
                           unsigned NumElements);
 





More information about the llvm-commits mailing list