diff options
| author | Alp Toker <alp@nuanti.com> | 2013-12-17 14:12:37 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2013-12-17 14:12:37 +0000 |
| commit | 26e65cec83b81d60dd4bc1977f01280905f00edc (patch) | |
| tree | 39c8ce8da19b7fefbcf4354e6e053586a376c073 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 19f1317211b0de172e8b1852612e3ac70a6be4cc (diff) | |
| download | clang-26e65cec83b81d60dd4bc1977f01280905f00edc.tar.gz clang-26e65cec83b81d60dd4bc1977f01280905f00edc.tar.bz2 clang-26e65cec83b81d60dd4bc1977f01280905f00edc.tar.xz | |
Refactor and micro-optimize ConsumeToken()
1) Introduce TryConsumeToken() to handle the common test-and-consume pattern.
This brings about readability improvements in the parser and optimizes to avoid
redundant checks in the common case.
2) Eliminate the ConsumeCodeCompletionTok special case from ConsumeToken(). This
was used by only one caller which has been switched over to the more
appropriate ConsumeCodeCompletionToken() function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
