diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-12-03 20:56:20 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-12-03 20:56:20 +0000 | 
| commit | 8f520dfa9c71be69f485a24f77e813bc4a97a2a7 (patch) | |
| tree | 2db2a01589c8f06489ab7d70332988af8e5b6163 /llvm | |
| parent | 645b7548bf54a959eab285b13fa02739a64d2613 (diff) | |
| download | bcm5719-llvm-8f520dfa9c71be69f485a24f77e813bc4a97a2a7.tar.gz bcm5719-llvm-8f520dfa9c71be69f485a24f77e813bc4a97a2a7.zip | |
Add virtual dtor, expose a debug impl
llvm-svn: 4892
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineCodeEmitter.h | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/llvm/include/llvm/CodeGen/MachineCodeEmitter.h b/llvm/include/llvm/CodeGen/MachineCodeEmitter.h index cddadb2661e..f0e5e3f2cb2 100644 --- a/llvm/include/llvm/CodeGen/MachineCodeEmitter.h +++ b/llvm/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 | 

