summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-09 17:23:58 +0000
committerChris Lattner <sabre@nondot.org>2007-10-09 17:23:58 +0000
commit0ab032aa8f3b8436b7540642a44de516c1ae42aa (patch)
treec0e8f982f7c0714f90982268368e886689497400 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentf4838472331f202d98eb2ae4a06ffcf099e5b891 (diff)
Add two new Token helper functions, "is" and "isNot". This allows us to write
stuff like this: // If we don't have a comma, it is either the end of the list (a ';') or // an error, bail out. if (Tok.isNot(tok::comma)) break; instead of: // If we don't have a comma, it is either the end of the list (a ';') or // an error, bail out. if (Tok.getKind() != tok::comma) break; There is obviously no functionality change, but the code reads a bit better and is more terse. llvm-svn: 42795
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions