diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-01-04 18:22:19 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-01-04 18:22:19 +0000 |
commit | 2060482ece6b810d930abaaa6ae3ae53dce97292 (patch) | |
tree | 4c10b163c07dd88b5e0ed980fa1ff8b46ea25da9 /clang | |
parent | cbaf730927f917cb23bb803e797af57ed5cba24d (diff) | |
download | bcm5719-llvm-2060482ece6b810d930abaaa6ae3ae53dce97292.tar.gz bcm5719-llvm-2060482ece6b810d930abaaa6ae3ae53dce97292.zip |
Remove -Wmodule-build; it was a dumb idea anyway. <rdar://problem/12957525>
llvm-svn: 171478
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/Basic/DiagnosticCommonKinds.td | 2 | ||||
-rw-r--r-- | clang/include/clang/Basic/DiagnosticGroups.td | 1 | ||||
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 2 | ||||
-rw-r--r-- | clang/test/Modules/on-demand-build-warnings.m | 5 |
4 files changed, 0 insertions, 10 deletions
diff --git a/clang/include/clang/Basic/DiagnosticCommonKinds.td b/clang/include/clang/Basic/DiagnosticCommonKinds.td index 534531bb4a1..bf713ef05c6 100644 --- a/clang/include/clang/Basic/DiagnosticCommonKinds.td +++ b/clang/include/clang/Basic/DiagnosticCommonKinds.td @@ -74,8 +74,6 @@ def err_module_not_found : Error<"module '%0' not found">, DefaultFatal; def err_module_not_built : Error<"could not build module '%0'">, DefaultFatal; def err_module_cycle : Error<"cyclic dependency in module '%0': %1">, DefaultFatal; -def warn_module_build : Warning<"building module '%0' from source">, - InGroup<ModuleBuild>, DefaultIgnore; def note_pragma_entered_here : Note<"#pragma entered here">; def note_decl_hiding_tag_type : Note< "%1 %0 is hidden by a non-type declaration of %0 here">; diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td index edfaa102e25..be11a537405 100644 --- a/clang/include/clang/Basic/DiagnosticGroups.td +++ b/clang/include/clang/Basic/DiagnosticGroups.td @@ -143,7 +143,6 @@ def MismatchedParameterTypes : DiagGroup<"mismatched-parameter-types">; def MismatchedReturnTypes : DiagGroup<"mismatched-return-types">; def MismatchedTags : DiagGroup<"mismatched-tags">; def MissingFieldInitializers : DiagGroup<"missing-field-initializers">; -def ModuleBuild : DiagGroup<"module-build">; def NullCharacter : DiagGroup<"null-character">; def NullDereference : DiagGroup<"null-dereference">; def InitializerOverrides : DiagGroup<"initializer-overrides">; diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index c2333c4f40b..ecc29654cb3 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -978,8 +978,6 @@ CompilerInstance::loadModule(SourceLocation ImportLoc, return ModuleLoadResult(); } - getDiagnostics().Report(ModuleNameLoc, diag::warn_module_build) - << ModuleName; BuildingModule = true; compileModule(*this, ModuleNameLoc, Module, ModuleFileName); ModuleFile = FileMgr->getFile(ModuleFileName); diff --git a/clang/test/Modules/on-demand-build-warnings.m b/clang/test/Modules/on-demand-build-warnings.m deleted file mode 100644 index 7116f01d381..00000000000 --- a/clang/test/Modules/on-demand-build-warnings.m +++ /dev/null @@ -1,5 +0,0 @@ -// RUN: rm -rf %t -// RUN: %clang_cc1 -fmodules -fno-objc-infer-related-result-type -Wmodule-build -fmodule-cache-path %t -F %S/Inputs -verify %s - -@import Module; // expected-warning{{building module 'Module' from source}} - |