r196727 - GlobalAlias::isDeclaration is always false. Remove dead code.
Rafael Espindola
rafael.espindola at gmail.com
Sun Dec 8 09:19:18 PST 2013
Author: rafael
Date: Sun Dec 8 11:19:18 2013
New Revision: 196727
URL: http://llvm.org/viewvc/llvm-project?rev=196727&view=rev
Log:
GlobalAlias::isDeclaration is always false. Remove 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=196727&r1=196726&r2=196727&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Sun Dec 8 11:19:18 2013
@@ -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);
}
More information about the cfe-commits
mailing list