remove the 'unused static' diagnostic from codegen. This should be

reimplemented in Sema someday.  This is tracked in PR2236.  Until then
disabling it removes some bogus diagnostics (see 2236).

llvm-svn: 50263
This commit is contained in:
Chris Lattner
2008-04-25 15:47:13 +00:00
parent 0276933b4b
commit 73669defed
3 changed files with 0 additions and 21 deletions

View File

@@ -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) {