revert r92749, which is just dead code.

llvm-svn: 93074
This commit is contained in:
Chris Lattner
2010-01-09 21:14:47 +00:00
parent 5ed4390474
commit 34c72dd683

View File

@@ -466,16 +466,6 @@ void CodeGenModule::EmitDeferred() {
if (!CGRef->isDeclaration())
continue;
// Skip available externally functions at -O0
// FIXME: these aren't instantiated yet, so we can't yet do this.
if (0 && getCodeGenOpts().OptimizationLevel == 0)
if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D.getDecl())) {
GVALinkage Linkage = GetLinkageForFunction(getContext(), FD, Features);
if (Linkage == GVA_C99Inline)
continue;
}
// Otherwise, emit the definition and move on to the next one.
EmitGlobalDefinition(D);
}