aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ConstantRangeTest.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-24 02:02:58 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-24 02:02:58 +0000
commit40b384eade257fe68f91aa3747c62796b755e986 (patch)
tree5505c702eeeb0831c431202d44870e618ee56f07 /llvm/unittests/Support/ConstantRangeTest.cpp
parent62e2148177f3d38b4cee4d2033b25d42ea8f0dc6 (diff)
downloadllvm-40b384eade257fe68f91aa3747c62796b755e986.zip
llvm-40b384eade257fe68f91aa3747c62796b755e986.tar.gz
llvm-40b384eade257fe68f91aa3747c62796b755e986.tar.bz2
Unbreak unit tests.
llvm-svn: 79879
Diffstat (limited to 'llvm/unittests/Support/ConstantRangeTest.cpp')
-rw-r--r--llvm/unittests/Support/ConstantRangeTest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/unittests/Support/ConstantRangeTest.cpp b/llvm/unittests/Support/ConstantRangeTest.cpp
index f377b6f..56f315a 100644
--- a/llvm/unittests/Support/ConstantRangeTest.cpp
+++ b/llvm/unittests/Support/ConstantRangeTest.cpp
@@ -16,6 +16,13 @@ using namespace llvm;
namespace {
+// Support APInt output to an std::ostream.
+inline std::ostream &operator<<(std::ostream &OS, const APInt &Value) {
+ raw_os_ostream RawOS(OS);
+ RawOS << Value;
+ return OS;
+}
+
class ConstantRangeTest : public ::testing::Test {
protected:
static ConstantRange Full;