mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-09 22:13:07 +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:
parent
7cd50cf286
commit
2202bfa5a3
@ -103,6 +103,7 @@ void AsmWriterEmitter::run(std::ostream &O) {
|
||||
} else if (DollarPos+1 != AsmString.size() &&
|
||||
AsmString[DollarPos+1] == '$') {
|
||||
O << " << '$'"; // "$$" -> $
|
||||
LastEmitted = DollarPos+2;
|
||||
} else {
|
||||
// Get the name of the variable.
|
||||
// TODO: should eventually handle ${foo}bar as $foo
|
||||
|
Loading…
x
Reference in New Issue
Block a user