aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/TGLexer.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-06-08 23:05:37 +0000
committerDavid Greene <greened@obbligato.org>2009-06-08 23:05:37 +0000
commit289963f54060643c60428a4c2fb5952ce061a222 (patch)
treed26340225fa5c4ca70833825a305da557017db5e /utils/TableGen/TGLexer.cpp
parentc918cc8d280ed65c802265ab2f464649f954d1a5 (diff)
downloadexternal_llvm-289963f54060643c60428a4c2fb5952ce061a222.zip
external_llvm-289963f54060643c60428a4c2fb5952ce061a222.tar.gz
external_llvm-289963f54060643c60428a4c2fb5952ce061a222.tar.bz2
Add a !patsubst operator. Use on string types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73099 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 378bffb..930d9db 100644
--- a/utils/TableGen/TGLexer.cpp
+++ b/utils/TableGen/TGLexer.cpp
@@ -449,6 +449,7 @@ tgtok::TokKind TGLexer::LexExclaim() {
if (Len == 10 && !memcmp(Start, "nameconcat", 10)) return tgtok::XNameConcat;
if (Len == 8 && !memcmp(Start, "regmatch", 8)) return tgtok::XRegMatch;
if (Len == 5 && !memcmp(Start, "subst", 5)) return tgtok::XSubst;
+ if (Len == 8 && !memcmp(Start, "patsubst", 8)) return tgtok::XPatSubst;
if (Len == 7 && !memcmp(Start, "foreach", 7)) return tgtok::XForEach;
if (Len == 4 && !memcmp(Start, "cast", 4)) return tgtok::XCast;
if (Len == 3 && !memcmp(Start, "car", 3)) return tgtok::XCar;