From 34c72dd68324cee76e80441fc9919eef6f69f29c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 9 Jan 2010 21:14:47 +0000 Subject: revert r92749, which is just dead code. llvm-svn: 93074 --- clang/lib/CodeGen/CodeGenModule.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 13cdc2b9dbe..eb716b6ab18 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -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(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); } -- cgit v1.2.3