projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a507cd
)
add a horrible hack to fix the build.
author
Chris Lattner
<sabre@nondot.org>
Fri, 13 Mar 2009 21:23:43 +0000
(21:23 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 13 Mar 2009 21:23:43 +0000
(21:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66957
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/TGLexer.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/TGLexer.cpp
b/utils/TableGen/TGLexer.cpp
index 8b810918dc676509ab2acd0180e045b1278f51f2..03bf0ceaa6b6c2aeded102edc388b4e9e95dc2e0 100644
(file)
--- 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");