summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-12-08 17:19:18 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-12-08 17:19:18 +0000
commitb80bacc89a4d0ede87ed350e8bbeb748b96cae64 (patch)
treed5f11ac47a030857e7c957ffa469e250b1af0582 /clang/lib/CodeGen/CodeGenModule.cpp
parente0a34ee66e0a1d084986e0e90420389eb7634752 (diff)
downloadbcm5719-llvm-b80bacc89a4d0ede87ed350e8bbeb748b96cae64.tar.gz
bcm5719-llvm-b80bacc89a4d0ede87ed350e8bbeb748b96cae64.zip
GlobalAlias::isDeclaration is always false. Remove dead code.
llvm-svn: 196727
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 792fbfce334..08c0d0de5c6 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1020,11 +1020,6 @@ void CodeGenModule::EmitDeferred() {
if (!CGRef->isDeclaration())
continue;
- // GlobalAlias::isDeclaration() defers to the aliasee, but for our
- // purposes an alias counts as a definition.
- if (isa<llvm::GlobalAlias>(CGRef))
- continue;
-
// Otherwise, emit the definition and move on to the next one.
EmitGlobalDefinition(D);
}
OpenPOWER on IntegriCloud