[cfe-commits] r93074 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Chris Lattner
sabre at nondot.org
Sat Jan 9 13:14:47 PST 2010
Author: lattner
Date: Sat Jan 9 15:14:47 2010
New Revision: 93074
URL: http://llvm.org/viewvc/llvm-project?rev=93074&view=rev
Log:
revert r92749, which is just dead code.
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=93074&r1=93073&r2=93074&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Sat Jan 9 15:14:47 2010
@@ -466,16 +466,6 @@
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);
}
More information about the cfe-commits
mailing list