File tree 1 file changed +18
-5
lines changed
llvm/include/llvm/Transforms/Instrumentation
1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 15
15
#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
16
16
#define LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
17
17
18
- class Module ;
19
- class Method ;
20
- class BasicBlock ;
18
+ #include " llvm/Transforms/Pass.h"
19
+
21
20
class Instruction ;
22
21
class Value ;
23
22
class Type ;
@@ -70,6 +69,20 @@ void InsertCodeToTraceValues (Method* method,
70
69
bool traceBasicBlockExits,
71
70
bool traceMethodExits);
72
71
73
- // **************************************************************************/
74
72
75
- #endif LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
73
+ class InsertTraceCode : public ConcretePass <InsertTraceCode> {
74
+ bool TraceBasicBlockExits, TraceMethodExits;
75
+ public:
76
+ InsertTraceCode (bool traceBasicBlockExits, bool traceMethodExits)
77
+ : TraceBasicBlockExits(traceBasicBlockExits),
78
+ TraceMethodExits (traceMethodExits) {}
79
+
80
+ // doPerMethodWork - This method does the work. Always successful.
81
+ //
82
+ bool doPerMethodWorkVirt (Method *M) {
83
+ InsertCodeToTraceValues (M, TraceBasicBlockExits, TraceMethodExits);
84
+ return false ;
85
+ }
86
+ };
87
+
88
+ #endif /* LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H*/
You can’t perform that action at this time.
0 commit comments