From b80bacc89a4d0ede87ed350e8bbeb748b96cae64 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sun, 8 Dec 2013 17:19:18 +0000 Subject: GlobalAlias::isDeclaration is always false. Remove dead code. llvm-svn: 196727 --- clang/lib/CodeGen/CodeGenModule.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 792fbfc..08c0d0d 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(CGRef)) - continue; - // Otherwise, emit the definition and move on to the next one. EmitGlobalDefinition(D); } -- cgit v1.1