diff options
Diffstat (limited to 'lib/Transforms/Instrumentation')
-rw-r--r-- | lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | 5 | ||||
-rw-r--r-- | lib/Transforms/Instrumentation/TraceValues.cpp | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp index 26fa866616..3a44dbf918 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp @@ -37,8 +37,9 @@ using std::vector; -class ProfilePaths: public FunctionPass { - public: +struct ProfilePaths : public FunctionPass { + const char *getPassName() const { return "ProfilePaths"; } + bool runOnFunction(Function *F); // Before this pass, make sure that there is only one diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp index 384516283c..1a9a7f3a6a 100644 --- a/lib/Transforms/Instrumentation/TraceValues.cpp +++ b/lib/Transforms/Instrumentation/TraceValues.cpp @@ -30,6 +30,8 @@ namespace { InsertTraceCode(bool traceBasicBlockExits, bool traceFunctionExits) : TraceBasicBlockExits(traceBasicBlockExits), TraceFunctionExits(traceFunctionExits) {} + + const char *getPassName() const { return "Trace Code Insertion"; } // Add a prototype for printf if it is not already in the program. // |