mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
getLimitedValue now just forward to APInt's getLimitedValue. Mark it const.
llvm-svn: 35861
This commit is contained in:
parent
9359e7f928
commit
da0e61ca4c
@ -189,9 +189,8 @@ public:
|
||||
/// @returns the 64-bit value of this constant if its active bits number is
|
||||
/// not greater than 64, otherwise, just return the given uint64_t number.
|
||||
/// @brief Get the constant's value if possible.
|
||||
uint64_t getLimitedValue(uint64_t Limit) {
|
||||
return (Val.getActiveBits() > 64 || Val.getZExtValue() > Limit) ?
|
||||
Limit : Val.getZExtValue();
|
||||
uint64_t getLimitedValue(uint64_t Limit = ~0ULL) const {
|
||||
return Val.getLimitedValue(Limit);
|
||||
}
|
||||
|
||||
/// @returns the value for an integer constant of the given type that has all
|
||||
|
Loading…
Reference in New Issue
Block a user