summaryrefslogtreecommitdiffstats
path: root/lld/unittests/DriverTests/DarwinLdDriverTest.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2013-09-08 13:30:14 +0000
committerJoerg Sonnenberger <joerg@bec.de>2013-09-08 13:30:14 +0000
commitbd25241e0e4887978557db7e67524408c16d8fe3 (patch)
treec85b5f5bcde17d8128d5ac7a419f6933fe1aec73 /lld/unittests/DriverTests/DarwinLdDriverTest.cpp
parent071cc9e89d6a129a28a6ef206e06f4c3e48ef187 (diff)
downloadbcm5719-llvm-bd25241e0e4887978557db7e67524408c16d8fe3.tar.gz
bcm5719-llvm-bd25241e0e4887978557db7e67524408c16d8fe3.zip
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
Diffstat (limited to 'lld/unittests/DriverTests/DarwinLdDriverTest.cpp')
-rw-r--r--lld/unittests/DriverTests/DarwinLdDriverTest.cpp10
1 files changed, 0 insertions, 10 deletions
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());
OpenPOWER on IntegriCloud