projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd50cf
)
make double-dollar properly escape asmstrings
author
Andrew Lenharth
<andrewl@lenharth.org>
Sat, 22 Jan 2005 00:35:22 +0000
(
00:35
+0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/utils/TableGen/AsmWriterEmitter.cpp
b/utils/TableGen/AsmWriterEmitter.cpp
index 3c3243833a55f998837013752edb97a10065ecdc..711a20ba0c8f88ebce6f7b3790ce8f045e70f92c 100644
(file)
--- 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