From 8582975b62e82ae43de09c0238542ac8c557e77e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 29 Mar 2004 20:42:38 +0000 Subject: [PATCH] Relax the interface a bit llvm-svn: 12533 --- llvm/include/llvm/Support/ConstantRange.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/include/llvm/Support/ConstantRange.h b/llvm/include/llvm/Support/ConstantRange.h index d97b73e82491..cc3b23fd8ed1 100644 --- a/llvm/include/llvm/Support/ConstantRange.h +++ b/llvm/include/llvm/Support/ConstantRange.h @@ -28,7 +28,7 @@ #include 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; }