mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Add virtual dtor, expose a debug impl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4892 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -15,6 +15,7 @@ class MachineBasicBlock;
|
|||||||
class Value;
|
class Value;
|
||||||
|
|
||||||
struct MachineCodeEmitter {
|
struct MachineCodeEmitter {
|
||||||
|
virtual ~MachineCodeEmitter() {}
|
||||||
|
|
||||||
/// startFunction - This callback is invoked when the specified function is
|
/// startFunction - This callback is invoked when the specified function is
|
||||||
/// about to be code generated.
|
/// about to be code generated.
|
||||||
@@ -41,6 +42,13 @@ struct MachineCodeEmitter {
|
|||||||
/// and jump instructions typically.
|
/// and jump instructions typically.
|
||||||
///
|
///
|
||||||
virtual void emitPCRelativeDisp(Value *V) {}
|
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
|
#endif
|
||||||
|
Reference in New Issue
Block a user