diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-13 21:23:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-13 21:23:43 +0000 |
commit | e023bb693605f0354bba176f7d87a21cc7aa3785 (patch) | |
tree | 456334073e35ef31a56570552a258e4232782b9e /utils | |
parent | 9a507cd915e6460bc7dadee2185c53df326274c1 (diff) | |
download | external_llvm-e023bb693605f0354bba176f7d87a21cc7aa3785.zip external_llvm-e023bb693605f0354bba176f7d87a21cc7aa3785.tar.gz external_llvm-e023bb693605f0354bba176f7d87a21cc7aa3785.tar.bz2 |
add a horrible hack to fix the build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/TGLexer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp index 8b81091..03bf0ce 100644 --- a/utils/TableGen/TGLexer.cpp +++ b/utils/TableGen/TGLexer.cpp @@ -173,6 +173,15 @@ tgtok::TokKind TGLexer::LexString() { // These turn into their literal character. CurStrVal += *CurPtr++; break; + case 't': + CurStrVal += "\\t"; + ++CurPtr; + break; + case 'n': + CurStrVal += "\\n"; + ++CurPtr; + break; + case '\n': case '\r': return ReturnError(CurPtr, "escaped newlines not supported in tblgen"); |