add a helper function to constantint.

llvm-svn: 35610
This commit is contained in:
Chris Lattner 2007-04-03 01:41:34 +00:00
parent f742e2fe70
commit 6b3ff17c70
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ public:
inline const APInt& getValue() const {
return Val;
}
/// getBitWidth - Return the bitwidth of this constant.
unsigned getBitWidth() const { return Val.getBitWidth(); }
/// Return the constant as a 64-bit unsigned integer value after it
/// has been zero extended as appropriate for the type of this constant. Note