From: Richard Smith Date: Mon, 15 Jun 2015 23:52:34 +0000 (+0000) Subject: [modules] Remove non-functional driver options -f[no-]modules-implicit-maps. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4cd526453453e8cf187ff5873566e3f040f7dffa;p=platform%2Fupstream%2Fllvm.git [modules] Remove non-functional driver options -f[no-]modules-implicit-maps. These driver options never did anything (they weren't forwarded to the frontend). Also update the documentation to not mention them. llvm-svn: 239787 --- diff --git a/clang/docs/Modules.rst b/clang/docs/Modules.rst index 9999106..4c2b888 100644 --- a/clang/docs/Modules.rst +++ b/clang/docs/Modules.rst @@ -175,7 +175,7 @@ Command-line parameters Enable the modules feature. ``-fmodule-maps`` - Enable interpretation of module maps. This option is implied by ``-fmodules``. + Enable implicit search for module map files named ``module.modulemap`` and similar. This option is implied by ``-fmodules``. If this is disabled, module map files will only be loaded if they are explicitly specified via ``-fmodule-map-file`` or transitively used by another module map file. ``-fmodules-cache-path=`` Specify the path to the modules cache. If not provided, Clang will select a system-appropriate default. @@ -207,9 +207,6 @@ Command-line parameters ``-fmodules-search-all`` If a symbol is not found, search modules referenced in the current module maps but not imported for symbols, so the error message can reference the module by name. Note that if the global module index has not been built before, this might take some time as it needs to build all the modules. Note that this option doesn't apply in module builds, to avoid the recursion. -``-fno-modules-implicit-maps`` - Suppresses the implicit search for files called ``module.modulemap`` and similar. Instead, module files need to be explicitly specified via ``-fmodule-map-file`` or transitively used. - ``-fno-implicit-modules`` All modules used by the build must be specified with ``-fmodule-file``. diff --git a/clang/include/clang/Driver/CC1Options.td b/clang/include/clang/Driver/CC1Options.td index f2ef71e..81fc280 100644 --- a/clang/include/clang/Driver/CC1Options.td +++ b/clang/include/clang/Driver/CC1Options.td @@ -352,6 +352,8 @@ def ast_dump_filter : Separate<["-"], "ast-dump-filter">, HelpText<"Use with -ast-dump or -ast-print to dump/print only AST declaration" " nodes having a certain substring in a qualified name. Use" " -ast-list to list all filterable declaration node names.">; +def fmodules_implicit_maps : Flag <["-"], "fmodules-implicit-maps">; +def fno_modules_implicit_maps : Flag <["-"], "fno-modules-implicit-maps">; def fno_modules_global_index : Flag<["-"], "fno-modules-global-index">, HelpText<"Do not automatically generate or update the global module index">; def fno_modules_error_recovery : Flag<["-"], "fno-modules-error-recovery">, diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 3ec5282..5a2e387 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -713,12 +713,6 @@ def fmodules_strict_decluse : Flag <["-"], "fmodules-strict-decluse">, Group; def fno_modules_search_all : Flag <["-"], "fno-modules-search-all">, Group, Flags<[DriverOption, CC1Option]>; -def fmodules_implicit_maps : - Flag <["-"], "fmodules-implicit-maps">, - Group, Flags<[DriverOption, CC1Option]>; -def fno_modules_implicit_maps : - Flag <["-"], "fno-modules-implicit-maps">, - Group, Flags<[DriverOption, CC1Option]>; def fno_implicit_modules : Flag <["-"], "fno-implicit-modules">, Group, Flags<[DriverOption, CC1Option]>;