Add default constructor to APSInt

- Creates uninitialized APInt. 
 - Prevents need for embedding arbitrary constants when used as an out
   parameter, for example.

llvm-svn: 54757
This commit is contained in:
Daniel Dunbar 2008-08-13 20:53:17 +00:00
parent 4e592412d4
commit e249d30421

View File

@ -23,6 +23,9 @@ namespace llvm {
class APSInt : public APInt {
bool IsUnsigned;
public:
/// Default constructor that creates an uninitialized APInt.
explicit APSInt() {}
/// APSInt ctor - Create an APSInt with the specified width, default to
/// unsigned.
explicit APSInt(uint32_t BitWidth, bool isUnsigned = true)