diff options
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MILexer.h')
| -rw-r--r-- | llvm/lib/CodeGen/MIRParser/MILexer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MILexer.h b/llvm/lib/CodeGen/MIRParser/MILexer.h index df8b6cb2026..f9cc97cb34e 100644 --- a/llvm/lib/CodeGen/MIRParser/MILexer.h +++ b/llvm/lib/CodeGen/MIRParser/MILexer.h @@ -34,6 +34,7 @@ struct MIToken { // Tokens with no info. comma, equal, + underscore, // Identifier tokens Identifier, @@ -58,7 +59,9 @@ public: bool isError() const { return Kind == Error; } - bool isRegister() const { return Kind == NamedRegister; } + bool isRegister() const { + return Kind == NamedRegister || Kind == underscore; + } bool is(TokenKind K) const { return Kind == K; } |

