From 1211c9028a3b69527d4f3220a4a349b637342848 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Wed, 6 Apr 2016 23:28:26 +0000 Subject: [PATCH] Keep -fmodule-implementation-of as an alias of -fmodule-name. This helps us transitioning to -fmodule-name. Once the transitioning is done, we can remove this alias. rdar://24800983 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265616 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/Options.td | 2 ++ test/Modules/implementation-of-module.m | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 67e875832a..dadb475f43 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -802,6 +802,8 @@ def fmodule_name_EQ : Joined<["-"], "fmodule-name=">, Group, Flags<[DriverOption,CC1Option]>, MetaVarName<"">, HelpText<"Specify the name of the module to build">; def fmodule_name : Separate<["-"], "fmodule-name">, Alias; +def fmodule_implementation_of : Separate<["-"], "fmodule-implementation-of">, + Flags<[CC1Option]>, Alias; def fmodule_map_file : Joined<["-"], "fmodule-map-file=">, Group, Flags<[DriverOption,CC1Option]>, MetaVarName<"">, HelpText<"Load this module map file">; diff --git a/test/Modules/implementation-of-module.m b/test/Modules/implementation-of-module.m index c07c52c3fc..712f12c565 100644 --- a/test/Modules/implementation-of-module.m +++ b/test/Modules/implementation-of-module.m @@ -1,18 +1,18 @@ // RUN: rm -rf %t // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -w -Werror=auto-import %s -I %S/Inputs \ -// RUN: -fmodule-name=category_right -fsyntax-only +// RUN: -fmodule-implementation-of category_right -fsyntax-only // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -w -Werror=auto-import %s -I %S/Inputs \ -// RUN: -fmodule-name=category_right -dM -E -o - 2>&1 | FileCheck %s +// RUN: -fmodule-implementation-of category_right -dM -E -o - 2>&1 | FileCheck %s // CHECK-NOT: __building_module // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -w -Werror=auto-import %s -I %S/Inputs \ -// RUN: -fmodule-name=category_left -verify +// RUN: -fmodule-implementation-of category_left -verify // RUN: %clang_cc1 -x objective-c-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -w -Werror=auto-import %s -I %S/Inputs \ -// RUN: -fmodule-name=category_right -emit-pch -o %t.pch +// RUN: -fmodule-implementation-of category_right -emit-pch -o %t.pch // RUN: %clang_cc1 -x objective-c-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -w -Werror=auto-import %s -I %S/Inputs \ -// RUN: -DWITH_PREFIX -fmodules-ignore-macro=WITH_PREFIX -include-pch %t.pch -fmodule-name=category_right +// RUN: -DWITH_PREFIX -fmodules-ignore-macro=WITH_PREFIX -include-pch %t.pch -fmodule-implementation-of category_right #ifndef WITH_PREFIX -- 2.40.0