AsmParser: Add a function to parse a standalone constant value.
authorAlex Lorenz <arphaman@gmail.com>
Fri, 17 Jul 2015 22:07:03 +0000 (22:07 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 17 Jul 2015 22:07:03 +0000 (22:07 +0000)
commitd225595dcfe550569193d19341d1d67c230efc5e
tree173affb81a42fc97282e805e2758aa14633eb4e3
parent8041e59370351cad70f5f647d55d806af05edef2
AsmParser: Add a function to parse a standalone constant value.

This commit extends the interface provided by the AsmParser library by adding a
function that allows the user to parse a standalone contant value.

This change is useful for MIR serialization, as it will allow the MIR Parser to
parse the constant values in a machine constant pool.

Reviewers: Duncan P. N. Exon Smith

Differential Revision: http://reviews.llvm.org/D10280

llvm-svn: 242579
llvm/include/llvm/AsmParser/Parser.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/AsmParser/LLParser.h
llvm/lib/AsmParser/Parser.cpp
llvm/unittests/AsmParser/AsmParserTest.cpp