Remove unnecessary ASTContext parameters from isMain and isExternC

llvm-svn: 81589
This commit is contained in:
Douglas Gregor
2009-09-12 00:17:51 +00:00
parent e2350a3b97
commit 16618f2157
5 changed files with 20 additions and 16 deletions

View File

@@ -561,7 +561,7 @@ void CodeGenModule::EmitGlobal(GlobalDecl GD) {
// In C++, if this is marked "extern", defer code generation.
if (getLangOptions().CPlusPlus && !VD->getInit() &&
(VD->getStorageClass() == VarDecl::Extern ||
VD->isExternC(getContext())))
VD->isExternC()))
return;
// In C, if this isn't a definition, defer code generation.