[llvm] [BOLT][DWARF] Refactor legacy ranges writers (PR #96006)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 12:42:16 PDT 2024
================
@@ -1605,6 +1613,32 @@ void DWARFRewriter::finalizeCompileUnits(DIEBuilder &DIEBlder,
DIEStreamer &Streamer,
CUOffsetMap &CUMap,
const std::list<DWARFUnit *> &CUs) {
+ for (DWARFUnit *CU : CUs) {
+ if (CU->getVersion() != 4)
+ continue;
+ if (std::optional<uint64_t> DWOId = CU->getDWOId()) {
----------------
maksfb wrote:
nit: use early `continue` here as well to reduce indentation.
https://github.com/llvm/llvm-project/pull/96006
More information about the llvm-commits
mailing list