mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
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
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user