diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-13 21:33:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-13 21:33:17 +0000 |
commit | 7f3b28a7867a35ec56a4ed80546e64995d69483e (patch) | |
tree | 28cd22d956138b29823cdff2800764043cf4ef3c /utils/TableGen/TGLexer.cpp | |
parent | e023bb693605f0354bba176f7d87a21cc7aa3785 (diff) |
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
Diffstat (limited to 'utils/TableGen/TGLexer.cpp')
-rw-r--r-- | utils/TableGen/TGLexer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp index 03bf0ceaa6..79982aa05f 100644 --- a/utils/TableGen/TGLexer.cpp +++ b/utils/TableGen/TGLexer.cpp @@ -174,11 +174,11 @@ tgtok::TokKind TGLexer::LexString() { CurStrVal += *CurPtr++; break; case 't': - CurStrVal += "\\t"; + CurStrVal += '\t'; ++CurPtr; break; case 'n': - CurStrVal += "\\n"; + CurStrVal += '\n'; ++CurPtr; break; |