diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-24 02:02:58 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-24 02:02:58 +0000 |
commit | 2571440d1e4fd86b43a65599e3ae078f92412df8 (patch) | |
tree | 47113746dca27a8e12382075569b726e3f1ddf1a /unittests/Support/ConstantRangeTest.cpp | |
parent | 566902bc2f5981f74014bd42dd6c2cc2bb638009 (diff) |
Unbreak unit tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support/ConstantRangeTest.cpp')
-rw-r--r-- | unittests/Support/ConstantRangeTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unittests/Support/ConstantRangeTest.cpp b/unittests/Support/ConstantRangeTest.cpp index f377b6f068..56f315a09a 100644 --- a/unittests/Support/ConstantRangeTest.cpp +++ b/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; |