[PATCH] D38012: Compact EhSectionPiece from 32 bytes to 16 bytes.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 17:21:46 PDT 2017


ruiu created this revision.
Herald added a subscriber: emaste.

EhSectionPiece used to have a pointer to a section, but that pointer was
mostly redundant because we almost always know what the section is without
using that pointer. This patch removes the pointer from the struct.

This patch also use uint32_t/int32_t instead of size_t to represent
offsets that are hardly be larger than 4 GiB. At the moment, I think it is
OK even if we cannot handle .eh_frame sections larger than 4 GiB.


https://reviews.llvm.org/D38012

Files:
  lld/ELF/EhFrame.cpp
  lld/ELF/EhFrame.h
  lld/ELF/InputSection.cpp
  lld/ELF/InputSection.h
  lld/ELF/MarkLive.cpp
  lld/ELF/SyntheticSections.cpp
  lld/ELF/SyntheticSections.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38012.115759.patch
Type: text/x-patch
Size: 11079 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170919/b30c39a8/attachment.bin>


More information about the llvm-commits mailing list