diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-01-22 00:35:22 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-01-22 00:35:22 +0000 |
commit | 2202bfa5a34c7493a360329bbdbff8fda8b29b6c (patch) | |
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
-rw-r--r-- | utils/TableGen/AsmWriterEmitter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index 3c3243833a..711a20ba0c 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -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 |