mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-13 22:00:14 +00:00
llvm-dwarfdump: use more efficient API (NFC)
llvm-svn: 313573
This commit is contained in:
parent
59a1275be1
commit
c8d8653de8
@ -257,10 +257,10 @@ void DWARFContext::dump(
|
||||
auto dumpDebugInfo = [&](bool IsExplicit, const char *Name,
|
||||
DWARFSection Section, cu_iterator_range CUs) {
|
||||
if (shouldDump(IsExplicit, Name, DIDT_ID_DebugInfo, Section.Data)) {
|
||||
for (const auto &CU : CUs)
|
||||
if (DumpOffset)
|
||||
CU->getDIEForOffset(DumpOffset.getValue()).dump(OS, 0, 0, DumpOpts);
|
||||
else
|
||||
if (DumpOffset)
|
||||
getDIEForOffset(DumpOffset.getValue()).dump(OS, 0, 0, DumpOpts);
|
||||
else
|
||||
for (const auto &CU : CUs)
|
||||
CU->dump(OS, DumpOpts);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user