[lld] [lld-macho][NFC] Refactor insertions into inputSections (PR #85692)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 13:39:25 PDT 2024


================
@@ -1220,53 +1220,18 @@ static void createFiles(const InputArgList &args) {
 
 static void gatherInputSections() {
   TimeTraceScope timeScope("Gathering input sections");
-  int inputOrder = 0;
   for (const InputFile *file : inputFiles) {
     for (const Section *section : file->sections) {
       // Compact unwind entries require special handling elsewhere. (In
       // contrast, EH frames are handled like regular ConcatInputSections.)
       if (section->name == section_names::compactUnwind)
         continue;
-      ConcatOutputSection *osec = nullptr;
----------------
alx32 wrote:

Diff vs code added below: 

<img width="1281" alt="image" src="https://github.com/llvm/llvm-project/assets/103613512/6b594d24-dca7-4458-9d5c-d0443478fcb3">


https://github.com/llvm/llvm-project/pull/85692


More information about the llvm-commits mailing list