summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit5958b46053581e3cc15f3de3b6f286e15050b661 (patch)
tree740de657f88c638663e8bed60908b1a49bac92fa /llvm/lib
parent3f79b8c3744038476bb91af4896703f83b2b421a (diff)
downloadbcm5719-llvm-5958b46053581e3cc15f3de3b6f286e15050b661.tar.gz
bcm5719-llvm-5958b46053581e3cc15f3de3b6f286e15050b661.zip
Remove unnecessary check against isGlobalVariable. We check it
a few lines above. llvm-svn: 176224
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index d2e05255663..d9f6b5eb0ad 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.
OpenPOWER on IntegriCloud