summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2013-04-04 19:26:14 +0000
committerNick Kledzik <kledzik@apple.com>2013-04-04 19:26:14 +0000
commitbe7b005d839a7042f7aa9d71a2014ac31ca41a98 (patch)
treeb3ab2144a3122e299f065eeade0b1a966e7b98e4
parent9a632dbe0ce252679b3ef9caaa0410e9f72471b1 (diff)
downloadbcm5719-llvm-be7b005d839a7042f7aa9d71a2014ac31ca41a98.tar.gz
bcm5719-llvm-be7b005d839a7042f7aa9d71a2014ac31ca41a98.zip
fix darwin driver to validate command line options
llvm-svn: 178778
-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