mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Teach googletest to use raw_ostream instead of just std::ostream.
This can break when there are implicit conversions from types raw_ostream understands but std::ostream doesn't, but it increases the number of cases that Just Work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81093 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,13 +16,6 @@ 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;
|
||||
|
Reference in New Issue
Block a user