summaryrefslogtreecommitdiffstats
path: root/lld/unittests/DriverTests/DarwinLdDriverTest.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2015-12-16 21:24:46 +0000
committerPete Cooper <peter_cooper@apple.com>2015-12-16 21:24:46 +0000
commit6e319c7b4269790e424567216aa08e7fb5be78e1 (patch)
tree4d42e843a02cc9a219c9a4e3e60aec919b622416 /lld/unittests/DriverTests/DarwinLdDriverTest.cpp
parentcbe4f9417d1cbb0192173439501fedb782949bad (diff)
downloadbcm5719-llvm-6e319c7b4269790e424567216aa08e7fb5be78e1.tar.gz
bcm5719-llvm-6e319c7b4269790e424567216aa08e7fb5be78e1.zip
Fix DarwinLdDriverTest.cpp to pass real llvm options.
After r255819, parse() actually parses what you pass it. This test was failing because it passed '--debug-only' which isn't in release builds, but also 'foo' which isn't an option at all. We now pass -enable-tbaa and -enable-misched which are real options. llvm-svn: 255822
Diffstat (limited to 'lld/unittests/DriverTests/DarwinLdDriverTest.cpp')
-rw-r--r--lld/unittests/DriverTests/DarwinLdDriverTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/unittests/DriverTests/DarwinLdDriverTest.cpp b/lld/unittests/DriverTests/DarwinLdDriverTest.cpp
index 1c77a05f585..e2809c44984 100644
--- a/lld/unittests/DriverTests/DarwinLdDriverTest.cpp
+++ b/lld/unittests/DriverTests/DarwinLdDriverTest.cpp
@@ -231,10 +231,10 @@ TEST_F(DarwinLdParserTest, deadStrippableDylibInvalidType) {
}
TEST_F(DarwinLdParserTest, llvmOptions) {
- EXPECT_TRUE(parse("ld", "-mllvm", "-debug-only", "-mllvm", "foo", "a.o",
+ EXPECT_TRUE(parse("ld", "-mllvm", "-enable-tbaa", "-mllvm", "-enable-misched", "a.o",
"-arch", "i386", nullptr));
const std::vector<const char *> &options = _ctx.llvmOptions();
EXPECT_EQ(options.size(), 2UL);
- EXPECT_EQ(strcmp(options[0],"-debug-only"), 0);
- EXPECT_EQ(strcmp(options[1],"foo"), 0);
+ EXPECT_EQ(strcmp(options[0],"-enable-tbaa"), 0);
+ EXPECT_EQ(strcmp(options[1],"-enable-misched"), 0);
}
OpenPOWER on IntegriCloud