diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-04-03 21:35:55 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-04-03 21:35:55 +0000 |
| commit | 8a87fb7633476e166cf8e7a2b4432d895a5cd3b7 (patch) | |
| tree | 9edd3e47fcc1ce51646dec584127b30f902a55d6 /llvm/lib/MC/MCStreamer.cpp | |
| parent | fed39fa7b3ec776dbdcd39460b039eeed5b80518 (diff) | |
| download | bcm5719-llvm-8a87fb7633476e166cf8e7a2b4432d895a5cd3b7.tar.gz bcm5719-llvm-8a87fb7633476e166cf8e7a2b4432d895a5cd3b7.zip | |
add a new EmitInlineAsm function to asmprinter to handle inline asm.
If we have an MCAsmStreamer, we continue to emit asm textually,
otherwise we (currently) emit an error to errs and ignore it.
llvm-svn: 100289
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
| -rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index 703acc4e599..c30dde8aed4 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -44,3 +44,12 @@ void MCStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue, for (uint64_t i = 0, e = NumBytes; i != e; ++i) EmitValue(E, 1, AddrSpace); } + +/// EmitRawText - If this file is backed by a assembly streamer, this dumps +/// the specified string in the output .s file. This capability is +/// indicated by the hasRawTextSupport() predicate. +void MCStreamer::EmitRawText(StringRef String) { + errs() << "EmitRawText called on an MCStreamer that doesn't support it, " + " something must not be fully mc'ized\n"; + abort(); +} |

