make double-dollar properly escape asmstrings
authorAndrew Lenharth <andrewl@lenharth.org>
Sat, 22 Jan 2005 00:35:22 +0000 (00:35 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Sat, 22 Jan 2005 00:35:22 +0000 (00:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19740 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmWriterEmitter.cpp

index 3c3243833a55f998837013752edb97a10065ecdc..711a20ba0c8f88ebce6f7b3790ce8f045e70f92c 100644 (file)
@@ -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