ADT: Add a string APSInt constructor.
authorAlex Lorenz <arphaman@gmail.com>
Tue, 23 Jun 2015 18:22:10 +0000 (18:22 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 23 Jun 2015 18:22:10 +0000 (18:22 +0000)
commit1c5cf241af0e564d17b04897dcaef2ce4340a8e0
tree6a1fd8190532b5beff060b2ba157d3783b914769
parent38e853141d8f82447d93851baf889dadf7bccc0e
ADT: Add a string APSInt constructor.

This commit moves the APSInt initialization code that's used by
the LLLexer class into a new APSInt constructor that constructs
APSInts from strings.

This change is useful for MIR Serialization, as it would allow
the MILexer class to use the same APSInt initialization as
LLexer when parsing immediate machine operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240436 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APSInt.h
lib/AsmParser/LLLexer.cpp
lib/Support/APSInt.cpp
unittests/ADT/APSIntTest.cpp