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 | 4be1388ebb09ff4d66eb9de0739a2f1c5da28b0e (patch) | |
tree | ecc7c59e62b240b29abfb705eab40abb5e16a023 /llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | |
parent | d8b51e134ede36f2e06a768c8cea22522153cd9e (diff) | |
download | bcm5719-llvm-4be1388ebb09ff4d66eb9de0739a2f1c5da28b0e.tar.gz bcm5719-llvm-4be1388ebb09ff4d66eb9de0739a2f1c5da28b0e.zip |
[DWARF] - Remove unused variables. NFC.
llvm-svn: 307528
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index 1c7a563d869..676a4b2b31f 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/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 |