mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
make double-dollar properly escape asmstrings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19740 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -103,6 +103,7 @@ void AsmWriterEmitter::run(std::ostream &O) {
|
|||||||
} else if (DollarPos+1 != AsmString.size() &&
|
} else if (DollarPos+1 != AsmString.size() &&
|
||||||
AsmString[DollarPos+1] == '$') {
|
AsmString[DollarPos+1] == '$') {
|
||||||
O << " << '$'"; // "$$" -> $
|
O << " << '$'"; // "$$" -> $
|
||||||
|
LastEmitted = DollarPos+2;
|
||||||
} else {
|
} else {
|
||||||
// Get the name of the variable.
|
// Get the name of the variable.
|
||||||
// TODO: should eventually handle ${foo}bar as $foo
|
// TODO: should eventually handle ${foo}bar as $foo
|
||||||
|
Reference in New Issue
Block a user