diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-02-03 18:18:30 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-03 18:18:30 +0000 |
| commit | e3ee332fe090b86910fbf59496788878b93cff38 (patch) | |
| tree | 1554e909f8857472ad0d634547680b26d177d2e8 /llvm/include | |
| parent | b247350ef7dde892dcdd047a9077f78b6bc783d1 (diff) | |
| download | bcm5719-llvm-e3ee332fe090b86910fbf59496788878b93cff38.tar.gz bcm5719-llvm-e3ee332fe090b86910fbf59496788878b93cff38.zip | |
llvm-mc: Add --show-inst option, for showing the MCInst inline with the assembly
output.
llvm-svn: 95227
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/MC/MCStreamer.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCStreamer.h b/llvm/include/llvm/MC/MCStreamer.h index cfd457261ff..624d9a6c06b 100644 --- a/llvm/include/llvm/MC/MCStreamer.h +++ b/llvm/include/llvm/MC/MCStreamer.h @@ -269,11 +269,21 @@ namespace llvm { /// createAsmStreamer - Create a machine code streamer which will print out /// assembly for the native target, suitable for compiling with a native /// assembler. + /// + /// \param InstPrint - If given, the instruction printer to use. If not given + /// the MCInst representation will be printed. + /// + /// \param CE - If given, a code emitter to use to show the instruction + /// encoding inline with the assembly. + /// + /// \param ShowInst - Whether to show the MCInst representation inline with + /// the assembly. MCStreamer *createAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS, const MCAsmInfo &MAI, bool isLittleEndian, bool isVerboseAsm, MCInstPrinter *InstPrint = 0, - MCCodeEmitter *CE = 0); + MCCodeEmitter *CE = 0, + bool ShowInst = false); // FIXME: These two may end up getting rolled into a single // createObjectStreamer interface, which implements the assembler backend, and |

