AsmParser: Use do{}while(false) in macros, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Feb 2015 23:49:24 +0000 (23:49 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Feb 2015 23:49:24 +0000 (23:49 +0000)
commit96d21d6fa5792981953b3d9ec749f34357338a0c
tree925402021b0a0b115c328bf7c942c64803026676
parent82ad78771b8c59c227e61e74330c0bcaa847d2ea
AsmParser: Use do{}while(false) in macros, NFC

`do { ... } while (false)` is standard macro etiquette for forcing
instantiations into a single statement and requiring a `;` afterwards,
making statement-like macros easier to reason about (and harder to use
incorrectly).

I'm about to modify the macros in `LexIdentifier()`.  I noticed that the
`KEYWORD` macro *does* follow the rule, so I thought I'd clean up the
other macros to match (otherwise might not be worth changing, since the
benefits of this pattern are fairly irrelevant here).

llvm-svn: 230095
llvm/lib/AsmParser/LLLexer.cpp