summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
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
commit34c72dd68324cee76e80441fc9919eef6f69f29c (patch)
tree2e80657678c4e21c87da4a5f87cfcbdb668f1dd1 /clang/lib/CodeGen/CodeGenModule.cpp
parent5ed43904742b2ecc3474ee5df807a1dd5683f0b9 (diff)
downloadbcm5719-llvm-34c72dd68324cee76e80441fc9919eef6f69f29c.tar.gz
bcm5719-llvm-34c72dd68324cee76e80441fc9919eef6f69f29c.zip
revert r92749, which is just dead code.
llvm-svn: 93074
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp10
1 files changed, 0 insertions, 10 deletions
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<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);
}
OpenPOWER on IntegriCloud