[PATCH] D100835: [WIP][LLD][RISCV] Linker Relaxation

Pretty-box via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 11 03:43:00 PDT 2022


Pretty-box added inline comments.


================
Comment at: lld/ELF/InputSection.h:178
+                                     rawData.size());
+  }
+
----------------
I would like to ask why a copy operation is performed here. The data in it does not seem to have changed.  If I do not perform this operation and use data().data() directly in relaxHi20Lo12, there will be a link error. Why is this?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100835



More information about the llvm-commits mailing list