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)
commit5938be0e847b4a9f15ff0b8a6538d3271ea5eb4f
treeaf7e9feaf14f8ecbff4b0ae7953d722ddaae709a
parent52509c07e557c380100c892a9c2d8000d0fca8c1
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242837 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MIRParser/MILexer.cpp