diff options
author | David Greene <greened@obbligato.org> | 2011-01-07 17:05:37 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-01-07 17:05:37 +0000 |
commit | 1434f66b2e132a707e2c8ccb3350ea13fb5aa051 (patch) | |
tree | 4802d84c0730654fc43566fdb31ce9ac1fbe528c /utils/TableGen/TGLexer.cpp | |
parent | 50dd09bd8592822214ff5fd66cffc3421b92d079 (diff) |
Rename lisp-like functions as suggested by Gabor Greif as loooong time
ago. This is both easier to learn and easier to read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TGLexer.cpp')
-rw-r--r-- | utils/TableGen/TGLexer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp index 732c79266d..82d2b6491a 100644 --- a/utils/TableGen/TGLexer.cpp +++ b/utils/TableGen/TGLexer.cpp @@ -424,14 +424,14 @@ tgtok::TokKind TGLexer::LexExclaim() { StringSwitch<tgtok::TokKind>(StringRef(Start, CurPtr - Start)) .Case("eq", tgtok::XEq) .Case("if", tgtok::XIf) - .Case("car", tgtok::XCar) - .Case("cdr", tgtok::XCdr) + .Case("head", tgtok::XHead) + .Case("tail", tgtok::XTail) .Case("con", tgtok::XConcat) .Case("shl", tgtok::XSHL) .Case("sra", tgtok::XSRA) .Case("srl", tgtok::XSRL) .Case("cast", tgtok::XCast) - .Case("null", tgtok::XNull) + .Case("empty", tgtok::XEmpty) .Case("subst", tgtok::XSubst) .Case("foreach", tgtok::XForEach) .Case("strconcat", tgtok::XStrConcat) |