]> granicus.if.org Git - llvm/commitdiff
[DWARF] - Remove unused variables. NFC.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 10 Jul 2017 09:36:44 +0000 (09:36 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 10 Jul 2017 09:36:44 +0000 (09:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307528 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARF/DWARFContext.cpp

index 1c7a563d869a85471907bf14e9fa6fea9704c4d9..676a4b2b31f1356136b78539cfd8f3e203e65f85 100644 (file)
@@ -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