From 5958b46053581e3cc15f3de3b6f286e15050b661 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 27 Feb 2013 23:49:50 +0000 Subject: [PATCH] Remove unnecessary check against isGlobalVariable. We check it a few lines above. llvm-svn: 176224 --- llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index d2e0525..d9f6b5e 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1348,7 +1348,7 @@ void CompileUnit::createGlobalVariableDIE(const MDNode *N) { } // Add linkage name. StringRef LinkageName = GV.getLinkageName(); - if (!LinkageName.empty() && isGlobalVariable) { + if (!LinkageName.empty()) { // From DWARF4: DIEs to which DW_AT_linkage_name may apply include: // TAG_common_block, TAG_constant, TAG_entry_point, TAG_subprogram and // TAG_variable. -- 2.7.4