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)
commit4b50ecbf6a5a9cec8fe11256a7853ff168150328
treeb1889be4c825ed6eacbd9aea50f6bcabbfe792a2
parentb8850e4b6292f3589b2c59133683e64b2f3b39b5
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242579 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/AsmParser/Parser.h
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLParser.h
lib/AsmParser/Parser.cpp
unittests/AsmParser/AsmParserTest.cpp