summaryrefslogtreecommitdiff
path: root/lld/unittests
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-03-02 19:08:05 +0000
committerRui Ueyama <ruiu@google.com>2016-03-02 19:08:05 +0000
commitb52b84e6bca4cb1170dbacddc8a3489c4cae85ac (patch)
treee43a9e0299b7a45fa76c8503b7cc73503b59690f /lld/unittests
parent4f7d179b13af58395ecd73b752ae52588e5cc392 (diff)
Merge DarwinLdDriver and Driver.
Now that DarwinLdDriver is the only derived class of Driver. This patch merges them and actually removed the class because they can now just be non-member functions. This change simplifies a common header, Driver.h. http://reviews.llvm.org/D17788
Diffstat (limited to 'lld/unittests')
-rw-r--r--lld/unittests/DriverTests/DarwinLdDriverTest.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/lld/unittests/DriverTests/DarwinLdDriverTest.cpp b/lld/unittests/DriverTests/DarwinLdDriverTest.cpp
index 68bd73643fe..ea7fcc7eafc 100644
--- a/lld/unittests/DriverTests/DarwinLdDriverTest.cpp
+++ b/lld/unittests/DriverTests/DarwinLdDriverTest.cpp
@@ -21,6 +21,13 @@
using namespace llvm;
using namespace lld;
+namespace lld {
+namespace mach_o {
+bool parse(llvm::ArrayRef<const char *> args, MachOLinkingContext &ctx,
+ raw_ostream &diagnostics);
+}
+}
+
namespace {
class DarwinLdParserTest : public testing::Test {
protected:
@@ -37,7 +44,7 @@ protected:
args.insert(args.begin(), "ld");
std::string errorMessage;
raw_string_ostream os(errorMessage);
- return DarwinLdDriver::parse(args, _ctx, os);
+ return mach_o::parse(args, _ctx, os);
}
MachOLinkingContext _ctx;