[llvm-commits] [llvm] r110505 - in /llvm/trunk: include/llvm/Support/ConstantRange.h lib/Support/ConstantRange.cpp
Owen Anderson
resistor at mac.com
Fri Aug 6 23:01:13 PDT 2010
Author: resistor
Date: Sat Aug 7 01:01:13 2010
New Revision: 110505
URL: http://llvm.org/viewvc/llvm-project?rev=110505&view=rev
Log:
Remove layering violation.
Modified:
llvm/trunk/include/llvm/Support/ConstantRange.h
llvm/trunk/lib/Support/ConstantRange.cpp
Modified: llvm/trunk/include/llvm/Support/ConstantRange.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ConstantRange.h?rev=110505&r1=110504&r2=110505&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ConstantRange.h (original)
+++ llvm/trunk/include/llvm/Support/ConstantRange.h Sat Aug 7 01:01:13 2010
@@ -37,8 +37,6 @@
namespace llvm {
-class ConstantInt;
-
/// ConstantRange - This class represents an range of values.
///
class ConstantRange {
@@ -54,7 +52,6 @@
/// 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
Modified: llvm/trunk/lib/Support/ConstantRange.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/ConstantRange.cpp?rev=110505&r1=110504&r2=110505&view=diff
==============================================================================
--- llvm/trunk/lib/Support/ConstantRange.cpp (original)
+++ llvm/trunk/lib/Support/ConstantRange.cpp Sat Aug 7 01:01:13 2010
@@ -40,8 +40,6 @@
/// 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) {
More information about the llvm-commits
mailing list