commit | 2202bfa5a34c7493a360329bbdbff8fda8b29b6c | [log] [tgz] |
---|---|---|
author | Andrew Lenharth <andrewl@lenharth.org> | Sat Jan 22 00:35:22 2005 +0000 |
committer | Andrew Lenharth <andrewl@lenharth.org> | Sat Jan 22 00:35:22 2005 +0000 |
tree | 1f77483122a132b11ae2e0f1f03f95e98654bc7c | |
parent | 7cd50cf286c5f16ca633080b3d78ee4dd2094a9f [diff] |
make double-dollar properly escape asmstrings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19740 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index 3c32438..711a20b 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp
@@ -103,6 +103,7 @@ } 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