Index: unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp =================================================================== --- unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp +++ unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp @@ -10,8 +10,6 @@ #include "gtest/gtest.h" #include "../../lib/ReaderWriter/MachO/MachONormalizedFile.h" #include "llvm/Support/MachO.h" -#include -#include using llvm::StringRef; using llvm::MemoryBuffer; @@ -75,7 +73,6 @@ EXPECT_TRUE(f->undefinedSymbols.empty()); } - TEST(BinaryReaderTest, empty_obj_x86) { FILEBYTES = { 0xce, 0xfa, 0xed, 0xfe, 0x07, 0x00, 0x00, 0x00, @@ -107,7 +104,6 @@ EXPECT_TRUE(f->undefinedSymbols.empty()); } - TEST(BinaryReaderTest, empty_obj_ppc) { FILEBYTES = { 0xfe, 0xed, 0xfa, 0xce, 0x00, 0x00, 0x00, 0x12, @@ -139,7 +135,6 @@ EXPECT_TRUE(f->undefinedSymbols.empty()); } - TEST(BinaryReaderTest, empty_obj_armv7) { FILEBYTES = { 0xce, 0xfa, 0xed, 0xfe, 0x0c, 0x00, 0x00, 0x00, @@ -326,7 +321,6 @@ EXPECT_EQ(printfLabel.scope, SymbolScope(N_EXT)); } - TEST(BinaryReaderTest, hello_obj_x86) { FILEBYTES = { 0xCE, 0xFA, 0xED, 0xFE, 0x07, 0x00, 0x00, 0x00, @@ -458,7 +452,6 @@ EXPECT_EQ(printfLabel.scope, SymbolScope(N_EXT)); } - TEST(BinaryReaderTest, hello_obj_armv7) { FILEBYTES = { 0xCE, 0xFA, 0xED, 0xFE, 0x0C, 0x00, 0x00, 0x00, @@ -600,7 +593,6 @@ EXPECT_EQ(printfLabel.scope, SymbolScope(N_EXT)); } - TEST(BinaryReaderTest, hello_obj_ppc) { FILEBYTES = { 0xFE, 0xED, 0xFA, 0xCE, 0x00, 0x00, 0x00, 0x12, @@ -744,5 +736,4 @@ EXPECT_EQ(printfLabel.scope, SymbolScope(N_EXT)); writeBinary(*f, "/tmp/foo.o"); - } Index: unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp =================================================================== --- unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp +++ unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp @@ -10,8 +10,6 @@ #include "gtest/gtest.h" #include "../../lib/ReaderWriter/MachO/MachONormalizedFile.h" #include "llvm/Support/MachO.h" -#include -#include using llvm::ErrorOr; Index: unittests/MachOTests/MachONormalizedFileYAMLTests.cpp =================================================================== --- unittests/MachOTests/MachONormalizedFileYAMLTests.cpp +++ unittests/MachOTests/MachONormalizedFileYAMLTests.cpp @@ -10,8 +10,6 @@ #include "gtest/gtest.h" #include "../../lib/ReaderWriter/MachO/MachONormalizedFile.h" #include "llvm/Support/MachO.h" -#include -#include using llvm::StringRef; using llvm::MemoryBuffer; @@ -21,7 +19,6 @@ using lld::mach_o::normalized::Section; using lld::mach_o::normalized::Relocation; - static std::unique_ptr fromYAML(StringRef str) { std::unique_ptr mb(MemoryBuffer::getMemBuffer(str)); ErrorOr> r @@ -36,7 +33,6 @@ EXPECT_TRUE(!ec); } - // ppc is no longer supported, but it is here to test endianness handling. TEST(ObjectFileYAML, empty_ppc) { std::unique_ptr f = fromYAML( @@ -134,7 +130,6 @@ EXPECT_TRUE(f->undefinedSymbols.empty()); } - TEST(ObjectFileYAML, roundTrip) { std::string intermediate; { @@ -157,7 +152,6 @@ } } - TEST(ObjectFileYAML, oneSymbol) { std::unique_ptr f = fromYAML( "---\n" @@ -186,7 +180,6 @@ EXPECT_EQ((uint64_t)sym.value, 0x100ULL); } - TEST(ObjectFileYAML, oneSection) { std::unique_ptr f = fromYAML( "---\n" @@ -220,7 +213,6 @@ EXPECT_EQ((int)(sect.content[1]), 0x90); } - TEST(ObjectFileYAML, hello_x86_64) { std::unique_ptr f = fromYAML( "---\n" @@ -349,7 +341,6 @@ EXPECT_EQ((uint64_t)sym3.value, 0x0ULL); } - TEST(ObjectFileYAML, hello_x86) { std::unique_ptr f = fromYAML( "---\n" @@ -607,8 +598,6 @@ EXPECT_EQ((uint64_t)sym2.value, 0x0ULL); } - - TEST(ObjectFileYAML, hello_armv7) { std::unique_ptr f = fromYAML( "---\n"