From a3cfbe33dacca77b89ee3733ef9c5c2a44a70ca8 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 7 Apr 2009 19:04:18 +0000 Subject: Driver: Add 'q' flag for options which shouldn't be reported as unused. - warning about '-dynamic' argument unused during compilation seems incorrect llvm-svn: 68535 --- clang/lib/Driver/OptTable.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Driver/OptTable.cpp') diff --git a/clang/lib/Driver/OptTable.cpp b/clang/lib/Driver/OptTable.cpp index cbbeea1..7ea6a8b 100644 --- a/clang/lib/Driver/OptTable.cpp +++ b/clang/lib/Driver/OptTable.cpp @@ -204,6 +204,7 @@ Option *OptTable::constructOption(options::ID id) const { case 'd': Opt->setDriverOption(true); break; case 'i': Opt->setNoOptAsInput(true); break; case 'l': Opt->setLinkerInput(true); break; + case 'q': Opt->setNoArgumentUnused(true); break; case 'u': Opt->setUnsupported(true); break; } } -- cgit v1.1