diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-03 22:12:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-03 22:12:35 +0000 |
commit | 58bc4dd4a91443ddd3120b0a2f1801ad4d6aae1c (patch) | |
tree | 700565cb493914bcd214dbe70ad1eb759736a813 /lib/MC/MCStreamer.cpp | |
parent | d5928dcd78ec03a64f61b7a93be219d97eda1f5c (diff) | |
download | external_llvm-58bc4dd4a91443ddd3120b0a2f1801ad4d6aae1c.zip external_llvm-58bc4dd4a91443ddd3120b0a2f1801ad4d6aae1c.tar.gz external_llvm-58bc4dd4a91443ddd3120b0a2f1801ad4d6aae1c.tar.bz2 |
add a twine form of MCStreamer::EmitRawText, and mc'ize
a few more things in AsmPrinter.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCStreamer.cpp')
-rw-r--r-- | lib/MC/MCStreamer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp index 0b88b0f..4f484a2 100644 --- a/lib/MC/MCStreamer.cpp +++ b/lib/MC/MCStreamer.cpp @@ -10,6 +10,8 @@ #include "llvm/MC/MCStreamer.h" #include "llvm/MC/MCExpr.h" #include "llvm/Support/raw_ostream.h" +#include "llvm/ADT/SmallString.h" +#include "llvm/ADT/Twine.h" #include <cstdlib> using namespace llvm; @@ -54,3 +56,9 @@ void MCStreamer::EmitRawText(StringRef String) { " something must not be fully mc'ized\n"; abort(); } + +void MCStreamer::EmitRawText(const Twine &T) { + SmallString<128> Str; + T.toVector(Str); + EmitRawText(Str.str()); +} |