diff options
| author | David Greene <greened@obbligato.org> | 2009-05-14 20:54:48 +0000 |
|---|---|---|
| committer | David Greene <greened@obbligato.org> | 2009-05-14 20:54:48 +0000 |
| commit | 5d0c051e6611726b907d289b34eaa463fee3d72a (patch) | |
| tree | 4ff0c429da948e8b845d87928082ca9584385782 /llvm/utils/TableGen/TGLexer.cpp | |
| parent | 6607b21156610ed1fdc8e894de448211a4907aa8 (diff) | |
| download | bcm5719-llvm-5d0c051e6611726b907d289b34eaa463fee3d72a.tar.gz bcm5719-llvm-5d0c051e6611726b907d289b34eaa463fee3d72a.zip | |
Operation Enhancements
Create an OpInit class to serve as a base for all operation Inits.
Move parsing of operation constructs to separate functions and reference
from multiple places.
Add some commented out new operations. Coming soon.
llvm-svn: 71789
Diffstat (limited to 'llvm/utils/TableGen/TGLexer.cpp')
| -rw-r--r-- | llvm/utils/TableGen/TGLexer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/TGLexer.cpp b/llvm/utils/TableGen/TGLexer.cpp index 8eb219b66b4..5e96e50351e 100644 --- a/llvm/utils/TableGen/TGLexer.cpp +++ b/llvm/utils/TableGen/TGLexer.cpp @@ -447,7 +447,10 @@ tgtok::TokKind TGLexer::LexExclaim() { if (Len == 3 && !memcmp(Start, "shl", 3)) return tgtok::XSHL; if (Len == 9 && !memcmp(Start, "strconcat", 9)) return tgtok::XStrConcat; if (Len == 10 && !memcmp(Start, "nameconcat", 10)) return tgtok::XNameConcat; - +// if (Len == 5 && !memcmp(Start, "subst", 5)) return tgtok::XSubst; +// if (Len == 7 && !memcmp(Start, "foreach", 7)) return tgtok::XForEach; +// if (Len == 4 && !memcmp(Start, "cast", 4)) return tgtok::XCast; + return ReturnError(Start-1, "Unknown operator"); } |

