[cfe-commits] r74517 - in /cfe/trunk/lib: Analysis/CheckObjCUnusedIVars.cpp Frontend/ASTConsumers.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Tue Jun 30 00:50:26 PDT 2009
Author: zhongxingxu
Date: Tue Jun 30 02:50:26 2009
New Revision: 74517
URL: http://llvm.org/viewvc/llvm-project?rev=74517&view=rev
Log:
remove dead code.
Modified:
cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp
cfe/trunk/lib/Frontend/ASTConsumers.cpp
Modified: cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp?rev=74517&r1=74516&r2=74517&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp (original)
+++ cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp Tue Jun 30 02:50:26 2009
@@ -59,9 +59,6 @@
ObjCInterfaceDecl* ID = D->getClassInterface();
IvarUsageMap M;
-
- ASTContext &Ctx = BR.getContext();
-
// Iterate over the ivars.
for (ObjCInterfaceDecl::ivar_iterator I=ID->ivar_begin(), E=ID->ivar_end();
I!=E; ++I) {
Modified: cfe/trunk/lib/Frontend/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTConsumers.cpp?rev=74517&r1=74516&r2=74517&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTConsumers.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTConsumers.cpp Tue Jun 30 02:50:26 2009
@@ -340,8 +340,6 @@
Out << "\n";
// Print decls in the DeclContext.
- // FIXME: Should not use a NULL DeclContext!
- ASTContext *Context = 0;
for (DeclContext::decl_iterator I = DC->decls_begin(), E = DC->decls_end();
I != E; ++I) {
for (unsigned i = 0; i < Indentation; ++i)
More information about the cfe-commits
mailing list