diff options
| author | Nick Kledzik <kledzik@apple.com> | 2014-08-21 20:25:50 +0000 |
|---|---|---|
| committer | Nick Kledzik <kledzik@apple.com> | 2014-08-21 20:25:50 +0000 |
| commit | 77afc71426583aba34e45a4ef1b64dd0ac3f8118 (patch) | |
| tree | e7a2006d61c1d663a8494363f2e0ed550632dde7 /lld/unittests/DriverTests/DarwinLdDriverTest.cpp | |
| parent | f00e7e143ee6b3d1ec1885ed4b9ec36419027e2d (diff) | |
| download | bcm5719-llvm-77afc71426583aba34e45a4ef1b64dd0ac3f8118.tar.gz bcm5719-llvm-77afc71426583aba34e45a4ef1b64dd0ac3f8118.zip | |
[mach-o] Fix initial live atoms with -dead_strip
When -dead_strip is used with -exported_symbols_list the initial set of
live atoms are those in the export list.
llvm-svn: 216213
Diffstat (limited to 'lld/unittests/DriverTests/DarwinLdDriverTest.cpp')
| -rw-r--r-- | lld/unittests/DriverTests/DarwinLdDriverTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lld/unittests/DriverTests/DarwinLdDriverTest.cpp b/lld/unittests/DriverTests/DarwinLdDriverTest.cpp index 3c17ca9e4cb..cf0da9dd099 100644 --- a/lld/unittests/DriverTests/DarwinLdDriverTest.cpp +++ b/lld/unittests/DriverTests/DarwinLdDriverTest.cpp @@ -79,17 +79,18 @@ TEST_F(DarwinLdParserTest, OutputPath) { } TEST_F(DarwinLdParserTest, DeadStrip) { - EXPECT_TRUE(parse("ld", "-dead_strip", "foo.o", nullptr)); + EXPECT_TRUE(parse("ld", "-arch", "x86_64", "-dead_strip", "foo.o", nullptr)); EXPECT_TRUE(_context.deadStrip()); } TEST_F(DarwinLdParserTest, DeadStripRootsExe) { - EXPECT_TRUE(parse("ld", "-dead_strip", "foo.o", nullptr)); + EXPECT_TRUE(parse("ld", "-arch", "x86_64", "-dead_strip", "foo.o", nullptr)); EXPECT_FALSE(_context.globalsAreDeadStripRoots()); } TEST_F(DarwinLdParserTest, DeadStripRootsDylib) { - EXPECT_TRUE(parse("ld", "-dylib", "-dead_strip", "foo.o", nullptr)); + EXPECT_TRUE(parse("ld", "-arch", "x86_64", "-dylib", "-dead_strip", "foo.o", + nullptr)); EXPECT_TRUE(_context.globalsAreDeadStripRoots()); } |

