class Value;
struct MachineCodeEmitter {
+ virtual ~MachineCodeEmitter() {}
/// startFunction - This callback is invoked when the specified function is
/// about to be code generated.
/// and jump instructions typically.
///
virtual void emitPCRelativeDisp(Value *V) {}
+
+
+ /// createDebugMachineCodeEmitter - Return a dynamically allocated machine
+ /// code emitter, which just prints the opcodes and fields out the cout. This
+ /// can be used for debugging users of the MachineCodeEmitter interface.
+ ///
+ static MachineCodeEmitter *createDebugMachineCodeEmitter();
};
#endif