diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-29 20:42:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-29 20:42:38 +0000 |
commit | 62fe9b59c1b50883b027393a183ac468d4371781 (patch) | |
tree | 1354a8b722aa3d1126e166bc39c2ddb7d2b612b1 /include/llvm/Support/ConstantRange.h | |
parent | d179961d400f13d7c39b658d0682dc0a758c8f77 (diff) |
Relax the interface a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ConstantRange.h')
-rw-r--r-- | include/llvm/Support/ConstantRange.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h index d97b73e824..cc3b23fd8e 100644 --- a/include/llvm/Support/ConstantRange.h +++ b/include/llvm/Support/ConstantRange.h @@ -28,7 +28,7 @@ #include <iosfwd> namespace llvm { - +class Constant; class ConstantIntegral; class Type; @@ -40,15 +40,15 @@ class ConstantRange { ConstantRange(const Type *Ty, bool isFullSet = true); /// Initialize a range of values explicitly... this will assert out if - /// Lower==Upper and Lower != Min or Max for its type (or if the two constants - /// have different types) + /// Lower==Upper and Lower != Min or Max for its type, if the two constants + /// have different types, or if the constant are not integral values. /// - ConstantRange(ConstantIntegral *Lower, ConstantIntegral *Upper); + ConstantRange(Constant *Lower, Constant *Upper); /// Initialize a set of values that all satisfy the condition with C. /// ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C); - + /// getLower - Return the lower value for this range... /// ConstantIntegral *getLower() const { return Lower; } |