[llvm] r176224 - Remove unnecessary check against isGlobalVariable. We check it
Eric Christopher
echristo at gmail.com
Wed Feb 27 15:49:50 PST 2013
Author: echristo
Date: Wed Feb 27 17:49:50 2013
New Revision: 176224
URL: http://llvm.org/viewvc/llvm-project?rev=176224&view=rev
Log:
Remove unnecessary check against isGlobalVariable. We check it
a few lines above.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=176224&r1=176223&r2=176224&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Wed Feb 27 17:49:50 2013
@@ -1348,7 +1348,7 @@ void CompileUnit::createGlobalVariableDI
}
// 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.
More information about the llvm-commits
mailing list