diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-29 00:52:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-29 00:52:27 +0000 |
commit | 08d6acf6e5efa6df57345922d412476127f856fc (patch) | |
tree | b9a41bb119c52f2d55efa6b1a5c9c106e2370cd4 /lib/Frontend/CompilerInstance.cpp | |
parent | aee526e77657afd1600276450e9c346953ad51d7 (diff) |
Introduce an opt-in warning when a module is being implicitly built
from sources.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index 554ca352e1..27fe3f15ff 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -752,6 +752,8 @@ ModuleKey CompilerInstance::loadModule(SourceLocation ImportLoc, return 0; } + getDiagnostics().Report(ModuleNameLoc, diag::warn_module_build) + << ModuleName.getName(); BuildingModule = true; compileModule(*this, ModuleName.getName(), ModuleFileName, UmbrellaHeader); ModuleFile = PP->getHeaderSearchInfo().lookupModule(ModuleName.getName()); |