From: Chris Lattner Date: Fri, 13 Mar 2009 21:23:43 +0000 (+0000) Subject: add a horrible hack to fix the build. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e023bb693605f0354bba176f7d87a21cc7aa3785;p=oota-llvm.git 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 --- diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp index 8b810918dc6..03bf0ceaa6b 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");