summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineCodeEmitter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-03 20:56:20 +0000
committerChris Lattner <sabre@nondot.org>2002-12-03 20:56:20 +0000
commitffc2d6f48544b24d3ac31f486d20c7073cb0b35f (patch)
treeda7703d30ba527928bc40c70d6457c9d53ef6a2c /include/llvm/CodeGen/MachineCodeEmitter.h
parentd852c15546add6a8a54be154559a377563ebfe18 (diff)
downloadllvm-ffc2d6f48544b24d3ac31f486d20c7073cb0b35f.tar.gz
llvm-ffc2d6f48544b24d3ac31f486d20c7073cb0b35f.tar.bz2
llvm-ffc2d6f48544b24d3ac31f486d20c7073cb0b35f.tar.xz
Add virtual dtor, expose a debug impl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineCodeEmitter.h')
-rw-r--r--include/llvm/CodeGen/MachineCodeEmitter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineCodeEmitter.h b/include/llvm/CodeGen/MachineCodeEmitter.h
index cddadb2661..f0e5e3f2cb 100644
--- a/include/llvm/CodeGen/MachineCodeEmitter.h
+++ b/include/llvm/CodeGen/MachineCodeEmitter.h
@@ -15,6 +15,7 @@ class MachineBasicBlock;
class Value;
struct MachineCodeEmitter {
+ virtual ~MachineCodeEmitter() {}
/// startFunction - This callback is invoked when the specified function is
/// about to be code generated.
@@ -41,6 +42,13 @@ struct MachineCodeEmitter {
/// 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