[PATCH] D100818: [lld-macho] Implement branch-range-extension thunks

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 5 11:44:23 PDT 2021


MaskRay added inline comments.


================
Comment at: lld/MachO/SyntheticSections.h:126
 
+  uint64_t getVA(uint32_t gotIndex) {
+    return addr + gotIndex * target->wordSize;
----------------
`const {`


================
Comment at: lld/MachO/Target.h:77
 
+  bool usesThunks() { return thunkSize > 0; }
+
----------------
const


================
Comment at: lld/MachO/Writer.cpp:565
+    r.isCallSite = true;
+    isec->callSiteCount++;
   } else if (relocAttrs.hasAttr(RelocAttrBits::GOT)) {
----------------
pre-increment


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100818



More information about the llvm-commits mailing list