diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2017-04-12 21:46:16 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2017-04-12 21:46:16 +0000 |
commit | c69f9f3530dc964d2dd809ad4077394192aef7de (patch) | |
tree | 403d2a5dbdee0f79d40d22648f89f59a7a63da1d /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | daa342d9c3ec5a3c270f0c3bff7f6d418a516cc0 (diff) | |
download | bcm5719-llvm-c69f9f3530dc964d2dd809ad4077394192aef7de.tar.gz bcm5719-llvm-c69f9f3530dc964d2dd809ad4077394192aef7de.zip |
[Modules] Enable local submodule visibility for ObjC/C
Remove the restriction where this is only valid with C++
rdar://problem/29055656
Differential Revision: https://reviews.llvm.org/D31781
llvm-svn: 300108
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 1ebaf8f4d8b..ab9f20304c9 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2117,12 +2117,6 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Args.hasFlag(OPT_fdeclspec, OPT_fno_declspec, (Opts.MicrosoftExt || Opts.Borland || Opts.CUDA)); - // For now, we only support local submodule visibility in C++ (because we - // heavily depend on the ODR for merging redefinitions). - if (Opts.ModulesLocalVisibility && !Opts.CPlusPlus) - Diags.Report(diag::err_drv_argument_not_allowed_with) - << "-fmodules-local-submodule-visibility" << "C"; - if (Arg *A = Args.getLastArg(OPT_faddress_space_map_mangling_EQ)) { switch (llvm::StringSwitch<unsigned>(A->getValue()) .Case("target", LangOptions::ASMM_Target) |