Defines a pass-through debugging emitter -- it writes to a file for inspection
authorMisha Brukman <brukman+llvm@gmail.com>
Tue, 27 May 2003 21:46:56 +0000 (21:46 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Tue, 27 May 2003 21:46:56 +0000 (21:46 +0000)
and to memory to test execution (using a passed-in code emitter).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6365 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineCodeEmitter.h

index 5c4802eacdc8b10271ae59261c312b5390d83514..ba70b18d185320db12fcecc22b03c0997a663305 100644 (file)
@@ -84,6 +84,13 @@ struct MachineCodeEmitter {
   /// can be used for debugging users of the MachineCodeEmitter interface.
   ///
   static MachineCodeEmitter *createDebugMachineCodeEmitter();
+
+  /// createFilePrinterMachineCodeEmitter - Return a dynamically allocated
+  /// machine code emitter, which prints binary code to a file.  This
+  /// can be used for debugging users of the MachineCodeEmitter interface.
+  ///
+  static MachineCodeEmitter*
+  createFilePrinterMachineCodeEmitter(MachineCodeEmitter&);
 };
 
 #endif