[llvm] r307528 - [DWARF] - Remove unused variables. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 02:36:45 PDT 2017
Author: grimar
Date: Mon Jul 10 02:36:44 2017
New Revision: 307528
URL: http://llvm.org/viewvc/llvm-project?rev=307528&view=rev
Log:
[DWARF] - Remove unused variables. NFC.
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp?rev=307528&r1=307527&r2=307528&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp Mon Jul 10 02:36:44 2017
@@ -940,14 +940,10 @@ DWARFContextInMemory::DWARFContextInMemo
StringRef Name;
Section.getName(Name);
// Skip BSS and Virtual sections, they aren't interesting.
- bool IsBSS = Section.isBSS();
- if (IsBSS)
+ if (Section.isBSS() || Section.isVirtual())
continue;
- bool IsVirtual = Section.isVirtual();
- if (IsVirtual)
- continue;
- StringRef Data;
+ StringRef Data;
section_iterator RelocatedSection = Section.getRelocatedSection();
// Try to obtain an already relocated version of this section.
// Else use the unrelocated section from the object file. We'll have to
More information about the llvm-commits
mailing list