From bd25241e0e4887978557db7e67524408c16d8fe3 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Sun, 8 Sep 2013 13:30:14 +0000 Subject: Drop the context forceLoadAllArchives() support. Rename the isForceLoad attribute in LinkerInput to isWholeArchive and use that for deciding whether library archives should be expanded. Implement the -all_load option of the Darwin linker using this flag and drop the support for it in GNU mode. llvm-svn: 190275 --- lld/unittests/DriverTests/DarwinLdDriverTest.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lld/unittests/DriverTests/DarwinLdDriverTest.cpp') diff --git a/lld/unittests/DriverTests/DarwinLdDriverTest.cpp b/lld/unittests/DriverTests/DarwinLdDriverTest.cpp index 2fb4df3612f..70dcba1756a 100644 --- a/lld/unittests/DriverTests/DarwinLdDriverTest.cpp +++ b/lld/unittests/DriverTests/DarwinLdDriverTest.cpp @@ -92,16 +92,6 @@ TEST_F(DarwinLdParserTest, DeadStripRootsDylib) { EXPECT_TRUE(_context.globalsAreDeadStripRoots()); } -TEST_F(DarwinLdParserTest, ForceLoadArchive) { - EXPECT_FALSE(parse("ld","-all_load", "foo.o", nullptr)); - EXPECT_TRUE(_context.forceLoadAllArchives()); -} - -TEST_F(DarwinLdParserTest, NoForceLoadArchive) { - EXPECT_FALSE(parse("ld", "foo.o", nullptr)); - EXPECT_FALSE(_context.forceLoadAllArchives()); -} - TEST_F(DarwinLdParserTest, Arch) { EXPECT_FALSE(parse("ld", "-arch", "x86_64", "foo.o", nullptr)); EXPECT_EQ(MachOLinkingContext::arch_x86_64, _context.arch()); -- cgit v1.2.3