Fix escaping in asm string literals correctly by having tblgen unescape
them, then the asmprinter emitter reescape them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66958 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp
index 03bf0ce..79982aa 100644
--- a/utils/TableGen/TGLexer.cpp
+++ b/utils/TableGen/TGLexer.cpp
@@ -174,11 +174,11 @@
CurStrVal += *CurPtr++;
break;
case 't':
- CurStrVal += "\\t";
+ CurStrVal += '\t';
++CurPtr;
break;
case 'n':
- CurStrVal += "\\n";
+ CurStrVal += '\n';
++CurPtr;
break;