aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-09 21:14:47 +0000
committerChris Lattner <sabre@nondot.org>2010-01-09 21:14:47 +0000
commit031421bc8f641dcfea110eda1492fe13e1292d1e (patch)
tree45a82713062ec90548ddb136f26e49ff01a686b3 /lib
parente6e8b5af0dc25cab3a5e4cd82ed554b68d5b323a (diff)
revert r92749, which is just dead code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index 13cdc2b9db..eb716b6ab1 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/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<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);
}