MIR Parser: Reuse the function 'lexName' when lexing global value tokens. NFC.
authorAlex Lorenz <arphaman@gmail.com>
Tue, 21 Jul 2015 21:23:08 +0000 (21:23 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 21 Jul 2015 21:23:08 +0000 (21:23 +0000)
commitc1fbb3540a22c64b0afcfb3c2e99171ae7b13414
tree0f5105622e9e8f702918713678ac2cf836cdb2db
parent2bf2cadc005edda3c56e5bcf960d43170b5f79e1
MIR Parser: Reuse the function 'lexName' when lexing global value tokens. NFC.

This commit refactors the function 'maybeLexGlobalValue' so that now it reuses
the function 'lexName' when lexing a named global value token.

llvm-svn: 242837
llvm/lib/CodeGen/MIRParser/MILexer.cpp