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 | d418c1b768b5ff26afe05a5ce84d920bbbc99583 (patch) | |
tree | a353f9555d0b125cbeaed9fc9d727545061e65a0 /utils/TableGen/TGLexer.cpp | |
parent | ccf85ded583167cbdbc20043e698eda8a7c2ed7d (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TGLexer.cpp')
-rw-r--r-- | utils/TableGen/TGLexer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp index 8eb219b66b..5e96e50351 100644 --- a/utils/TableGen/TGLexer.cpp +++ b/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"); } |