Remove unnecessary check against isGlobalVariable. We check it
authorEric Christopher <echristo@gmail.com>
Wed, 27 Feb 2013 23:49:50 +0000 (23:49 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 27 Feb 2013 23:49:50 +0000 (23:49 +0000)
a few lines above.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176224 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp

index d2e0525566362bae6758441c2cc68351c6b1f9c9..d9f6b5eb0ad5e3623270377d5191fc09b916fb49 100644 (file)
@@ -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.