[modules] Flatten -fmodule-name= and -fmodule-implementation-of= into a single
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 19 Feb 2016 22:25:36 +0000 (22:25 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 19 Feb 2016 22:25:36 +0000 (22:25 +0000)
commit7e82e019c6bc974e8819c66fbc386e25dd6ea64a
tree10f4986d0392cba8f3130a33a35218e38273ff47
parenta8f1f2efaff0f2de6a7158c33ba714b31ecea19d
[modules] Flatten -fmodule-name= and -fmodule-implementation-of= into a single
option. Previously these options could both be used to specify that you were
compiling the implementation file of a module, with a different set of minor
bugs in each case.

This change removes -fmodule-implementation-of, and instead tracks a flag to
determine whether we're currently building a module. -fmodule-name now behaves
the same way that -fmodule-implementation-of previously did.

llvm-svn: 261372
22 files changed:
clang/include/clang/Basic/DiagnosticFrontendKinds.td
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Basic/LangOptions.h
clang/include/clang/Driver/CC1Options.td
clang/include/clang/Driver/Options.td
clang/include/clang/Lex/ModuleMap.h
clang/lib/Basic/LangOptions.cpp
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/FrontendActions.cpp
clang/lib/Lex/ModuleMap.cpp
clang/lib/Lex/PPDirectives.cpp
clang/lib/Lex/PPMacroExpansion.cpp
clang/lib/Lex/Preprocessor.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclObjC.cpp
clang/test/Modules/Inputs/explicit-build/a.h
clang/test/Modules/explicit-build.cpp
clang/test/Modules/implementation-of-module.m
clang/test/Modules/import-self.m