parent
578e83df34
commit
6991ab1e5e
|
|
@ -15,9 +15,8 @@
|
||||||
#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
|
#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
|
||||||
#define LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
|
#define LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
|
||||||
|
|
||||||
class Module;
|
#include "llvm/Transforms/Pass.h"
|
||||||
class Method;
|
|
||||||
class BasicBlock;
|
|
||||||
class Instruction;
|
class Instruction;
|
||||||
class Value;
|
class Value;
|
||||||
class Type;
|
class Type;
|
||||||
|
|
@ -70,6 +69,20 @@ void InsertCodeToTraceValues (Method* method,
|
||||||
bool traceBasicBlockExits,
|
bool traceBasicBlockExits,
|
||||||
bool traceMethodExits);
|
bool traceMethodExits);
|
||||||
|
|
||||||
//**************************************************************************/
|
|
||||||
|
|
||||||
#endif LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
|
class InsertTraceCode : public ConcretePass<InsertTraceCode> {
|
||||||
|
bool TraceBasicBlockExits, TraceMethodExits;
|
||||||
|
public:
|
||||||
|
InsertTraceCode(bool traceBasicBlockExits, bool traceMethodExits)
|
||||||
|
: TraceBasicBlockExits(traceBasicBlockExits),
|
||||||
|
TraceMethodExits(traceMethodExits) {}
|
||||||
|
|
||||||
|
// doPerMethodWork - This method does the work. Always successful.
|
||||||
|
//
|
||||||
|
bool doPerMethodWorkVirt(Method *M) {
|
||||||
|
InsertCodeToTraceValues(M, TraceBasicBlockExits, TraceMethodExits);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /*LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue