diff options
author | George Rimar <grimar@accesssoftek.com> | 2017-07-10 09:36:44 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2017-07-10 09:36:44 +0000 |
commit | 505b8a7283b052853b8295df057a04cf25869ce7 (patch) | |
tree | 88cf0c1a38a873fd32a56bc16c6716737596b659 | |
parent | 8c3ce14ba82f190172164b6ba0ad0e6d65e27873 (diff) |
[DWARF] - Remove unused variables. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307528 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/DebugInfo/DWARF/DWARFContext.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/DebugInfo/DWARF/DWARFContext.cpp b/lib/DebugInfo/DWARF/DWARFContext.cpp index 1c7a563d869..676a4b2b31f 100644 --- a/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -940,14 +940,10 @@ DWARFContextInMemory::DWARFContextInMemory( 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 |