[llvm-commits] [llvm] r66957 - /llvm/trunk/utils/TableGen/TGLexer.cpp
Chris Lattner
sabre at nondot.org
Fri Mar 13 14:23:43 PDT 2009
Author: lattner
Date: Fri Mar 13 16:23:43 2009
New Revision: 66957
URL: http://llvm.org/viewvc/llvm-project?rev=66957&view=rev
Log:
add a horrible hack to fix the build.
Modified:
llvm/trunk/utils/TableGen/TGLexer.cpp
Modified: llvm/trunk/utils/TableGen/TGLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/TGLexer.cpp?rev=66957&r1=66956&r2=66957&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/TGLexer.cpp (original)
+++ llvm/trunk/utils/TableGen/TGLexer.cpp Fri Mar 13 16:23:43 2009
@@ -173,6 +173,15 @@
// 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");
More information about the llvm-commits
mailing list