[PATCH] D114017: [lld-macho][nfc] Factor-out NFC changes from main __eh_frame diff

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 16 11:54:38 PST 2021


oontvoo added inline comments.


================
Comment at: lld/MachO/ICF.cpp:190
   // .subsections_via_symbols.)
-  auto hasCU = [](Defined *d) { return d->compactUnwind; };
+  auto hasCU = [](Defined *d) { return d->unwindEntry; };
   auto itA = std::find_if(ia->symbols.begin(), ia->symbols.end(), hasCU);
----------------



================
Comment at: lld/MachO/InputFiles.cpp:694
 
-    InputSection *lastIsec = subsections.back().isec;
+    Subsection subsec = subsections.back();
+    InputSection *lastIsec = subsec.isec;
----------------
(dont think it's necessary to copy it)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114017/new/

https://reviews.llvm.org/D114017



More information about the llvm-commits mailing list