From 9714772383086b79d62a9a2ae624c7739a0a9924 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Wed, 8 Jul 2015 18:49:41 +0000 Subject: [PATCH] [Driver] print-multi-os-directory is unsupported. Until somebody writes the code for it, be loud about the fact that it's not implemented yet. Differential Revision: http://reviews.llvm.org/D11020 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241708 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/Options.td | 3 ++- lib/Driver/Driver.cpp | 8 -------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 9855c7d54c..df90371d93 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -1518,7 +1518,8 @@ def print_libgcc_file_name : Flag<["-", "--"], "print-libgcc-file-name">, HelpText<"Print the library path for \"libgcc.a\"">; def print_multi_directory : Flag<["-", "--"], "print-multi-directory">; def print_multi_lib : Flag<["-", "--"], "print-multi-lib">; -def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">; +def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">, + Flags<[Unsupported]>; def print_prog_name_EQ : Joined<["-", "--"], "print-prog-name=">, HelpText<"Print the full program path of ">, MetaVarName<"">; def print_search_dirs : Flag<["-", "--"], "print-search-dirs">, diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index c23768e686..1914a33c0c 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -787,14 +787,6 @@ bool Driver::HandleImmediateArgs(const Compilation &C) { } return false; } - - if (C.getArgs().hasArg(options::OPT_print_multi_os_directory)) { - // FIXME: This should print out "lib/../lib", "lib/../lib64", or - // "lib/../lib32" as appropriate for the toolchain. For now, print - // nothing because it's not supported yet. - return false; - } - return true; } -- 2.40.0