1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Convert to use Pass infrastructure

llvm-svn: 834
This commit is contained in:
Chris Lattner 2001-10-15 17:30:18 +00:00
parent 6a4db15e88
commit 9e0f07c207

View File

@ -15,9 +15,8 @@
#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
#define LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H
class Module;
class Method;
class BasicBlock;
#include "llvm/Transforms/Pass.h"
class Instruction;
class Value;
class Type;
@ -70,6 +69,20 @@ void InsertCodeToTraceValues (Method* method,
bool traceBasicBlockExits,
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*/