aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/TGLexer.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-05-14 23:26:46 +0000
committerDavid Greene <greened@obbligato.org>2009-05-14 23:26:46 +0000
commit9bea7c85d71bbb192f686a56e9b5bf32ae3389e6 (patch)
treedbd9719b6373f1e119b294f122b6c4dac0ab5d0d /utils/TableGen/TGLexer.cpp
parent11adeed8b3032fddacb9f678dd122c142a8d08f1 (diff)
Implement !if, analogous to $(if) in GNU make.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TGLexer.cpp')
-rw-r--r--utils/TableGen/TGLexer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp
index faf1e75a68..758d499a8b 100644
--- a/utils/TableGen/TGLexer.cpp
+++ b/utils/TableGen/TGLexer.cpp
@@ -453,6 +453,7 @@ tgtok::TokKind TGLexer::LexExclaim() {
if (Len == 3 && !memcmp(Start, "car", 3)) return tgtok::XCar;
if (Len == 3 && !memcmp(Start, "cdr", 3)) return tgtok::XCdr;
if (Len == 4 && !memcmp(Start, "null", 4)) return tgtok::XNull;
+ if (Len == 2 && !memcmp(Start, "if", 2)) return tgtok::XIf;
return ReturnError(Start-1, "Unknown operator");
}