Converted a1.ll to unittests.
[oota-llvm.git] / utils / TableGen / TGLexer.cpp
index 8b810918dc676509ab2acd0180e045b1278f51f2..79982aa05f52684744f8a4599b04658afedf9166 100644 (file)
@@ -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");