aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index 98a8aaaf86..7e5e8f06b7 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/lib/CodeGen/CodeGenModule.cpp
@@ -355,14 +355,6 @@ void CodeGenModule::EmitStatics() {
Changed = true;
}
} while (Changed);
-
- // Warn about all statics that are still unused at end of code generation.
- for (unsigned i = 0, e = StaticDecls.size(); i != e; ++i) {
- const NamedDecl *D = StaticDecls[i];
- std::string Msg = D->getName();
- getDiags().Report(Context.getFullLoc(D->getLocation()),
- diag::warn_unused_static, &Msg, 1);
- }
}
llvm::Constant *CodeGenModule::EmitGlobalInit(const Expr *Expr) {