diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-05-04 16:51:48 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-05-04 16:51:48 +0000 |
commit | 495d9340e9a8289b179e58c2d3b43c329c3ca3b3 (patch) | |
tree | 5e0c4fdac8b1ff372bad2252d0bba9aff34ea8dd /llvm/runtime/libprofile/Profiling.h | |
parent | 875d70b3c0f0852f36e9a503cb871f42d80ef435 (diff) | |
download | bcm5719-llvm-495d9340e9a8289b179e58c2d3b43c329c3ca3b3.tar.gz bcm5719-llvm-495d9340e9a8289b179e58c2d3b43c329c3ca3b3.zip |
Share the profile info type enum with the C++ analysis libraries.
Add a documentation comment for write_profiling_data().
llvm-svn: 13345
Diffstat (limited to 'llvm/runtime/libprofile/Profiling.h')
-rw-r--r-- | llvm/runtime/libprofile/Profiling.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/llvm/runtime/libprofile/Profiling.h b/llvm/runtime/libprofile/Profiling.h index 61ae09bf7b8..20f960f1b35 100644 --- a/llvm/runtime/libprofile/Profiling.h +++ b/llvm/runtime/libprofile/Profiling.h @@ -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); |