diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-28 22:46:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-28 22:46:12 +0000 |
commit | 6f81b510217bd87f265cca054c5d9885250d8525 (patch) | |
tree | 5df9ed1ff445ba9c1efe8754da583542d079d455 /lib/Support | |
parent | c0ac317f93bef323437d791e4ef5a97f36d50515 (diff) |
Removed some of the iostream #includes. Moved towards converting to using
llvm streams
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/ConstantRange.cpp | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/lib/Support/ConstantRange.cpp b/lib/Support/ConstantRange.cpp index 9e12c9343d..21eabe2aca 100644 --- a/lib/Support/ConstantRange.cpp +++ b/lib/Support/ConstantRange.cpp @@ -25,8 +25,8 @@ #include "llvm/Constants.h" #include "llvm/Instruction.h" #include "llvm/Type.h" -#include <iostream> - +#include "llvm/Support/Streams.h" +#include <ostream> using namespace llvm; static ConstantIntegral *Next(ConstantIntegral *CI) { @@ -50,6 +50,32 @@ static bool LTE(ConstantIntegral *A, ConstantIntegral *B) { return cast<ConstantBool>(C)->getValue(); } + + + + + + + + + + + + + + + + + + + + + + + + + + static bool GT(ConstantIntegral *A, ConstantIntegral *B) { return LT(B, A); } static ConstantIntegral *Min(ConstantIntegral *A, ConstantIntegral *B) { @@ -328,5 +354,5 @@ void ConstantRange::print(std::ostream &OS) const { /// dump - Allow printing from a debugger easily... /// void ConstantRange::dump() const { - print(std::cerr); + print(llvm_cerr); } |