Skip to content

Commit

Permalink
Profile: move a single enum out of ProfileInfoTypes.h into a new
Browse files Browse the repository at this point in the history
ProfileDataTypes.h header.

With this patch the old and new profiling code can exist side-by-side. The new
profiling code will be submitted soon and it only supports insert-edge-profiling
for now and will not depend on ProfileInfo.

Patch by Alastair Murray.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162576 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Manman Ren committed Aug 24, 2012
1 parent 1a710fd commit cd62c28
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions include/llvm/Analysis/ProfileInfoTypes.h
Original file line number Diff line number Diff line change
@@ -27,15 +27,7 @@ enum ProfilingStorageType {
ProfilingHash = 2
};

enum ProfilingType {
ArgumentInfo = 1, /* The command line argument block */
FunctionInfo = 2, /* Function profiling information */
BlockInfo = 3, /* Block profiling information */
EdgeInfo = 4, /* Edge profiling information */
PathInfo = 5, /* Path profiling information */
BBTraceInfo = 6, /* Basic block trace information */
OptEdgeInfo = 7 /* Edge profiling information, optimal version */
};
#include "llvm/Analysis/ProfileDataTypes.h"

/*
* The header for tables that map path numbers to path counters.
2 changes: 1 addition & 1 deletion runtime/libprofile/Profiling.h
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
#ifndef PROFILING_H
#define PROFILING_H

#include "llvm/Analysis/ProfileInfoTypes.h" /* for enum ProfilingType */
#include "llvm/Analysis/ProfileDataTypes.h" /* for enum ProfilingType */

/* save_arguments - Save argc and argv as passed into the program for the file
* we output.

0 comments on commit cd62c28

Please sign in to comment.