aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-02-27 23:49:50 +0000
committerEric Christopher <echristo@gmail.com>2013-02-27 23:49:50 +0000
commita8ada25afdb74a1cc53c183348ad9a424501dc96 (patch)
tree09f39a8faa4e7fd980d36288116cd62b0cd9ca79 /lib
parent8d45a98eb14338428155be70681a42dccc03a5ce (diff)
downloadexternal_llvm-a8ada25afdb74a1cc53c183348ad9a424501dc96.zip
external_llvm-a8ada25afdb74a1cc53c183348ad9a424501dc96.tar.gz
external_llvm-a8ada25afdb74a1cc53c183348ad9a424501dc96.tar.bz2
Remove unnecessary check against isGlobalVariable. We check it
a few lines above. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index d2e0525..d9f6b5e 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/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.