mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Revert "Introduce a string_ostream string builder facilty"
Temporarily back out commits r211749, r211752 and r211754. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211814 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4580,7 +4580,8 @@ bool AsmParser::parseMSInlineAsm(
|
||||
}
|
||||
|
||||
// Build the IR assembly string.
|
||||
string_ostream OS;
|
||||
std::string AsmStringIR;
|
||||
raw_string_ostream OS(AsmStringIR);
|
||||
const char *AsmStart = SrcMgr.getMemoryBuffer(0)->getBufferStart();
|
||||
const char *AsmEnd = SrcMgr.getMemoryBuffer(0)->getBufferEnd();
|
||||
array_pod_sort(AsmStrRewrites.begin(), AsmStrRewrites.end(), rewritesSort);
|
||||
@@ -4645,7 +4646,8 @@ bool AsmParser::parseMSInlineAsm(
|
||||
}
|
||||
case AOK_DotOperator:
|
||||
// Insert the dot if the user omitted it.
|
||||
if (OS.str().back() != '.')
|
||||
OS.flush();
|
||||
if (AsmStringIR.back() != '.')
|
||||
OS << '.';
|
||||
OS << AR.Val;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user