aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-14 03:48:55 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-14 03:48:55 +0000
commitc22e0b2443afdedb6d9b225b938ad404d63cdbe6 (patch)
tree63f7975e72d90fa0fb45f05c4593608fa0550f17 /include
parent575327b77e9092074e5d18bfebfb78ce550aa2a3 (diff)
Update llvm-mc / MCAsmStreamer to print the instruction using the actual target
specific printer (this only works on x86, for now). - This makes it possible to do some correctness checking of the parsing and matching, since we can compare the results of 'as' on the original input, to those of 'as' on the output from llvm-mc. - In theory, we could now have an easy ATT -> Intel syntax converter. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCStreamer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h
index 3f37bfe2a8..434288eb18 100644
--- a/include/llvm/MC/MCStreamer.h
+++ b/include/llvm/MC/MCStreamer.h
@@ -17,6 +17,7 @@
#include "llvm/Support/DataTypes.h"
namespace llvm {
+ class AsmPrinter;
class MCContext;
class MCValue;
class MCInst;
@@ -228,7 +229,10 @@ namespace llvm {
/// createAsmStreamer - Create a machine code streamer which will print out
/// assembly for the native target, suitable for compiling with a native
/// assembler.
- MCStreamer *createAsmStreamer(MCContext &Ctx, raw_ostream &OS);
+ ///
+ /// \arg AP - If given, an AsmPrinter to use for printing instructions.
+ MCStreamer *createAsmStreamer(MCContext &Ctx, raw_ostream &OS,
+ AsmPrinter *AP = 0);
// FIXME: These two may end up getting rolled into a single
// createObjectStreamer interface, which implements the assembler backend, and