[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineCodeEmitter.h

Chris Lattner lattner at cs.uiuc.edu
Tue Dec 3 14:57:00 PST 2002


Changes in directory llvm/include/llvm/CodeGen:

MachineCodeEmitter.h updated: 1.3 -> 1.4

---
Log message:

Add virtual dtor, expose a debug impl


---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/MachineCodeEmitter.h
diff -u llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.3 llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.4
--- llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.3	Mon Dec  2 15:56:28 2002
+++ llvm/include/llvm/CodeGen/MachineCodeEmitter.h	Tue Dec  3 14:56:20 2002
@@ -15,6 +15,7 @@
 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 @@
   /// 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





More information about the llvm-commits mailing list