diff options
author | Zhou Sheng <zhousheng00@gmail.com> | 2007-01-11 12:24:14 +0000 |
---|---|---|
committer | Zhou Sheng <zhousheng00@gmail.com> | 2007-01-11 12:24:14 +0000 |
commit | 6b6b6ef1677fa71b1072c2911b4c1f9524a558c9 (patch) | |
tree | 480ecf010ac5facd1bc29ab57441253691bb42d6 /include/llvm/Support/ConstantRange.h | |
parent | 057809ac1c78c3456e8f1481330fa2bcd2b85029 (diff) |
For PR1043:
Merge ConstantIntegral and ConstantBool into ConstantInt.
Remove ConstantIntegral and ConstantBool from LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ConstantRange.h')
-rw-r--r-- | include/llvm/Support/ConstantRange.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h index 806dc80522..f37c54c707 100644 --- a/include/llvm/Support/ConstantRange.h +++ b/include/llvm/Support/ConstantRange.h @@ -36,12 +36,11 @@ namespace llvm { class Constant; -class ConstantIntegral; class ConstantInt; class Type; class ConstantRange { - ConstantIntegral *Lower, *Upper; + ConstantInt *Lower, *Upper; public: /// Initialize a full (the default) or empty set for the specified type. /// @@ -61,15 +60,15 @@ class ConstantRange { /// predicate should be either an ICmpInst::Predicate or FCmpInst::Predicate /// value. /// @brief Get a range for a relation with a constant integral. - ConstantRange(unsigned short predicate, ConstantIntegral *C); + ConstantRange(unsigned short predicate, ConstantInt *C); /// getLower - Return the lower value for this range... /// - ConstantIntegral *getLower() const { return Lower; } + ConstantInt *getLower() const { return Lower; } /// getUpper - Return the upper value for this range... /// - ConstantIntegral *getUpper() const { return Upper; } + ConstantInt *getUpper() const { return Upper; } /// getType - Return the LLVM data type of this range. /// @@ -98,7 +97,7 @@ class ConstantRange { /// getSingleElement - If this set contains a single element, return it, /// otherwise return null. /// - ConstantIntegral *getSingleElement() const; + ConstantInt *getSingleElement() const; /// isSingleElement - Return true if this set contains exactly one member. /// |