[PATCH] D113241: [lld-macho][nfc] rename parsed-section types & variables

Greg McGary via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 4 21:39:15 PDT 2021


gkm created this revision.
gkm added a reviewer: lld-macho.
Herald added a project: lld-macho.
gkm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is an NFC diff that prepares for the diff that prunes & relocates `__eh_frame` entries.

This all began with the addition of an offset member to `ParsedSection`, so that the subsequent `__eh_frame` diff can more easily compute function entrypoint addresses from relative offsets in `__TEXT,__eh_frame` that reach backward across section boundaries to `__TEXT,__text`.

Along the way, I made the following changes to ...

- clarify confused usage of `section` vs. `subsection`
- s/`Map`/`Vec`/; s/`map`/`vec`/ for names that are not maps, but rather denote vectors
- steer away from the overly generic class name `Section` to distinguish types for parsed section vs. MachO section header


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113241

Files:
  lld/MachO/Driver.cpp
  lld/MachO/InputFiles.cpp
  lld/MachO/InputFiles.h
  lld/MachO/InputSection.cpp
  lld/MachO/ObjC.cpp
  lld/MachO/SyntheticSections.cpp
  lld/MachO/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113241.384959.patch
Type: text/x-patch
Size: 24481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211105/378eaaee/attachment.bin>


More information about the llvm-commits mailing list