summaryrefslogtreecommitdiff
path: root/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-03 21:35:55 +0000
committerChris Lattner <sabre@nondot.org>2010-04-03 21:35:55 +0000
commit91bead790518fcf5cb26019fb1ebf2372e8a5b3f (patch)
tree069591723216e18906bac6c3117502c73a56bf0b /lib/MC/MCStreamer.cpp
parent47b7e5dae911bc98aa76fa5d2ee506c9304f941a (diff)
downloadllvm-91bead790518fcf5cb26019fb1ebf2372e8a5b3f.tar.gz
llvm-91bead790518fcf5cb26019fb1ebf2372e8a5b3f.tar.bz2
llvm-91bead790518fcf5cb26019fb1ebf2372e8a5b3f.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCStreamer.cpp')
-rw-r--r--lib/MC/MCStreamer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp
index 703acc4e59..c30dde8aed 100644
--- a/lib/MC/MCStreamer.cpp
+++ b/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();
+}