diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-06-21 06:32:10 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-06-21 06:32:10 +0000 |
commit | 4b13558df5739718460b7aae9b86029555c46518 (patch) | |
tree | 9f642d87c375f2fec6b8e73012b357985fc9745f /lld/unittests | |
parent | 74e79dcc48de6ea4f78613800849f5e0a5d60d6c (diff) |
ArrayRef-ify Driver::parse and related functions.
Diffstat (limited to 'lld/unittests')
-rw-r--r-- | lld/unittests/DriverTests/DriverTest.h | 2 | ||||
-rw-r--r-- | lld/unittests/DriverTests/UniversalDriverTest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lld/unittests/DriverTests/DriverTest.h b/lld/unittests/DriverTests/DriverTest.h index 2349132ee2c..65af7cac313 100644 --- a/lld/unittests/DriverTests/DriverTest.h +++ b/lld/unittests/DriverTests/DriverTest.h @@ -51,7 +51,7 @@ protected: // Call the parser. raw_string_ostream os(_errorMessage); - return D::parse(vec.size(), &vec[0], _ctx, os); + return D::parse(vec, _ctx, os); } T _ctx; diff --git a/lld/unittests/DriverTests/UniversalDriverTest.cpp b/lld/unittests/DriverTests/UniversalDriverTest.cpp index 8e90ca4d586..f54bc834fc4 100644 --- a/lld/unittests/DriverTests/UniversalDriverTest.cpp +++ b/lld/unittests/DriverTests/UniversalDriverTest.cpp @@ -25,7 +25,7 @@ TEST(UniversalDriver, flavor) { std::string diags; raw_string_ostream os(diags); - UniversalDriver::link(array_lengthof(args), args, os); + UniversalDriver::link(args, os); EXPECT_EQ(os.str().find("failed to determine driver flavor"), std::string::npos); EXPECT_NE(os.str().find("No input files"), |