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 | a3ebe6ee2b7c5358a83cb9d1fd126e559ddc99d8 (patch) | |
| tree | ed908116e4597ba34a3e5b1627c423abd43ab01c /llvm/docs/NVPTXUsage.rst | |
| parent | 53358e43bc71dc1d1660a26f8a403c8a2d6ed76b (diff) | |
| download | bcm5719-llvm-a3ebe6ee2b7c5358a83cb9d1fd126e559ddc99d8.tar.gz bcm5719-llvm-a3ebe6ee2b7c5358a83cb9d1fd126e559ddc99d8.zip | |
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.
llvm-svn: 197497
Diffstat (limited to 'llvm/docs/NVPTXUsage.rst')
0 files changed, 0 insertions, 0 deletions

