mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 23:20:41 +00:00
allow attaching comments to raw text.
llvm-svn: 100292
This commit is contained in:
parent
940911edf1
commit
fad8688f5d
@ -645,13 +645,10 @@ void MCAsmStreamer::EmitInstruction(const MCInst &Inst) {
|
||||
/// the specified string in the output .s file. This capability is
|
||||
/// indicated by the hasRawTextSupport() predicate.
|
||||
void MCAsmStreamer::EmitRawText(StringRef String) {
|
||||
if (!CommentToEmit.empty() || CommentStream.GetNumBytesInBuffer() != 0)
|
||||
EmitCommentsAndEOL();
|
||||
|
||||
if (!String.empty() && String.back() == '\n')
|
||||
String = String.substr(0, String.size()-1);
|
||||
OS << String;
|
||||
|
||||
if (!String.empty() && String.back() != '\n')
|
||||
OS << '\n';
|
||||
EmitEOL();
|
||||
}
|
||||
|
||||
void MCAsmStreamer::Finish() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user