summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ConstantRange.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-08-07 00:42:06 +0000
committerOwen Anderson <resistor@mac.com>2010-08-07 00:42:06 +0000
commit634bab148cacc8cc8647172056c26c8bc3f60a65 (patch)
tree8c075cc7f9db8bd3bce5ffd49e1c9c5687965900 /include/llvm/Support/ConstantRange.h
parent95102149362cd76c700b80dd1d1c618cc7f333db (diff)
downloadllvm-634bab148cacc8cc8647172056c26c8bc3f60a65.tar.gz
llvm-634bab148cacc8cc8647172056c26c8bc3f60a65.tar.bz2
llvm-634bab148cacc8cc8647172056c26c8bc3f60a65.tar.xz
Add a convenience constructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110493 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ConstantRange.h')
-rw-r--r--include/llvm/Support/ConstantRange.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h
index 607a94fb4b..1187cfd949 100644
--- a/include/llvm/Support/ConstantRange.h
+++ b/include/llvm/Support/ConstantRange.h
@@ -37,6 +37,8 @@
namespace llvm {
+class ConstantInt;
+
/// ConstantRange - This class represents an range of values.
///
class ConstantRange {
@@ -52,6 +54,7 @@ public:
/// Initialize a range to hold the single specified value.
///
ConstantRange(const APInt &Value);
+ ConstantRange(const ConstantInt *Value);
/// @brief Initialize a range of values explicitly. This will assert out if
/// Lower==Upper and Lower != Min or Max value for its type. It will also