mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +00:00
Simplify, now that gtest supports raw_ostream directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81102 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f78a58e14
commit
46e124668a
@ -8,7 +8,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include <ostream>
|
||||
#include "llvm/Support/raw_os_ostream.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "llvm/ADT/APInt.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
@ -17,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;
|
||||
}
|
||||
|
||||
// Test that APInt shift left works when bitwidth > 64 and shiftamt == 0
|
||||
TEST(APIntTest, ShiftLeftByZero) {
|
||||
APInt One = APInt::getNullValue(65) + 1;
|
||||
|
@ -8,7 +8,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Support/ConstantRange.h"
|
||||
#include "llvm/Support/raw_os_ostream.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user