From: Misha Brukman Date: Tue, 27 May 2003 21:46:56 +0000 (+0000) Subject: Defines a pass-through debugging emitter -- it writes to a file for inspection X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6b5e0549ca9cd1c80d726ee1a7ed83035bd93388;p=oota-llvm.git Defines a pass-through debugging emitter -- it writes to a file for inspection 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 --- diff --git a/include/llvm/CodeGen/MachineCodeEmitter.h b/include/llvm/CodeGen/MachineCodeEmitter.h index 5c4802eacdc..ba70b18d185 100644 --- a/include/llvm/CodeGen/MachineCodeEmitter.h +++ b/include/llvm/CodeGen/MachineCodeEmitter.h @@ -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