[PATCH] D54981: Simplify Symbol::getPltVA.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 27 15:31:43 PST 2018


ruiu created this revision.
ruiu added a reviewer: MaskRay.
Herald added subscribers: arichardson, emaste.
Herald added a reviewer: espindola.

This patch also makes getPltEntryOffset a non-member function because
it doesn't depend on any private members of the TargetInfo class.

I tried a few different ideas, and it seems this change fits in best
to me.


https://reviews.llvm.org/D54981

Files:
  lld/ELF/Arch/X86_64.cpp
  lld/ELF/Relocations.cpp
  lld/ELF/Symbols.cpp
  lld/ELF/Symbols.h
  lld/ELF/SyntheticSections.h
  lld/ELF/Target.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54981.175594.patch
Type: text/x-patch
Size: 4009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181127/f607138d/attachment.bin>


More information about the llvm-commits mailing list