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 | a614ef2000fd2885467f2df40c58cb557970675d (patch) | |
tree | e7dfcd6252f0582223fa37a53d58ed802991891a /llvm/utils/TableGen/TGLexer.cpp | |
parent | 83aba00ee8864ae7dc7dc532cc45382a307ecf1c (diff) | |
download | bcm5719-llvm-a614ef2000fd2885467f2df40c58cb557970675d.tar.gz bcm5719-llvm-a614ef2000fd2885467f2df40c58cb557970675d.zip |
add a horrible hack to fix the build.
llvm-svn: 66957
Diffstat (limited to 'llvm/utils/TableGen/TGLexer.cpp')
-rw-r--r-- | llvm/utils/TableGen/TGLexer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/TGLexer.cpp b/llvm/utils/TableGen/TGLexer.cpp index 8b810918dc6..03bf0ceaa6b 100644 --- a/llvm/utils/TableGen/TGLexer.cpp +++ b/llvm/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"); |