aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/TGLexer.cpp9
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");