Remove layering violation.
authorOwen Anderson <resistor@mac.com>
Sat, 7 Aug 2010 06:01:13 +0000 (06:01 +0000)
committerOwen Anderson <resistor@mac.com>
Sat, 7 Aug 2010 06:01:13 +0000 (06:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110505 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ConstantRange.h
lib/Support/ConstantRange.cpp

index c3a6dd03fdfa4679b8053f69e61cb64caa602229..e32426130a30f3f7adf7ac577135a22c188fb8cc 100644 (file)
@@ -37,8 +37,6 @@
 
 namespace llvm {
 
-class ConstantInt;
-
 /// ConstantRange - This class represents an range of values.
 ///
 class ConstantRange {
@@ -54,7 +52,6 @@ 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
index 26a23efe031c5ff8379081084d376faf439956a5..d4e91a95fb584b863300c17e63042f931d6865e9 100644 (file)
@@ -40,8 +40,6 @@ ConstantRange::ConstantRange(uint32_t BitWidth, bool Full) {
 /// Initialize a range to hold the single specified value.
 ///
 ConstantRange::ConstantRange(const APInt & V) : Lower(V), Upper(V + 1) {}
-ConstantRange::ConstantRange(const ConstantInt *V)
-  : Lower(V->getValue()), Upper(V->getValue() + 1) {}
 
 ConstantRange::ConstantRange(const APInt &L, const APInt &U) :
   Lower(L), Upper(U) {