This patch removes OutRelocations vector from the InputChunk and
directly consume Relocations vector instead. This should make the linker
faster because we don't create a temporary data structure, and it matches
the lld's design principle that we don't create temporary data structures
for object files but instead directly consume mmap'ed data whenever possible.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This is much better. Thank you. I particularly like the elimination of that random struct.
lld/wasm/InputChunks.h | ||
---|---|---|
54 ↗ | (On Diff #134983) | I guess we might as well get rid of this pair get/setters now and just expose OutputOffset. |