summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/lib/Driver/DarwinLdDriver.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp
index 1dbe5dfec0d..43628a95c2b 100644
--- a/lld/lib/Driver/DarwinLdDriver.cpp
+++ b/lld/lib/Driver/DarwinLdDriver.cpp
@@ -188,6 +188,10 @@ bool DarwinLdDriver::parse(int argc, const char *argv[],
info.appendInputFile((*it)->getValue());
}
+ // Validate the combination of options used.
+ if (info.validate(diagnostics))
+ return true;
+
return false;
}
OpenPOWER on IntegriCloud