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
diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp
index 8eb219b..5e96e50 100644
--- a/utils/TableGen/TGLexer.cpp
+++ b/utils/TableGen/TGLexer.cpp
@@ -447,7 +447,10 @@
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");
}