[llvm-branch-commits] [llvm-branch] r70088 - in /llvm/branches/Apple/Dib/utils/TableGen: AsmWriterEmitter.cpp TGLexer.cpp
Bill Wendling
isanbard at gmail.com
Sat Apr 25 15:26:35 PDT 2009
Author: void
Date: Sat Apr 25 17:26:35 2009
New Revision: 70088
URL: http://llvm.org/viewvc/llvm-project?rev=70088&view=rev
Log:
Apply table gen patch to fix some strangeness.
Modified:
llvm/branches/Apple/Dib/utils/TableGen/AsmWriterEmitter.cpp
llvm/branches/Apple/Dib/utils/TableGen/TGLexer.cpp
Modified: llvm/branches/Apple/Dib/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/utils/TableGen/AsmWriterEmitter.cpp?rev=70088&r1=70087&r2=70088&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/branches/Apple/Dib/utils/TableGen/AsmWriterEmitter.cpp Sat Apr 25 17:26:35 2009
@@ -137,6 +137,8 @@
case '\t': AddLiteralString("\\t"); break;
case '"': AddLiteralString("\\\""); break;
case '\\': AddLiteralString("\\\\"); break;
+ case '{': AddLiteralString("{"); break;
+ case '}': AddLiteralString("}"); break;
default:
AddLiteralString(std::string(1, AsmString[LastEmitted]));
break;
Modified: llvm/branches/Apple/Dib/utils/TableGen/TGLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/utils/TableGen/TGLexer.cpp?rev=70088&r1=70087&r2=70088&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/utils/TableGen/TGLexer.cpp (original)
+++ llvm/branches/Apple/Dib/utils/TableGen/TGLexer.cpp Sat Apr 25 17:26:35 2009
@@ -173,6 +173,16 @@
// These turn into their literal character.
CurStrVal += *CurPtr++;
break;
+ case '{':
+ CurStrVal += '\\';
+ CurStrVal += '{';
+ ++CurPtr;
+ break;
+ case '}':
+ CurStrVal += '\\';
+ CurStrVal += '}';
+ ++CurPtr;
+ break;
case 't':
CurStrVal += '\t';
++CurPtr;
More information about the llvm-branch-commits
mailing list