[PATCH] D29947: Represent all addends with int64_t

Rafael Ávila de Espíndola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 14 08:49:32 PST 2017


rafael created this revision.

Addends should always be signed.

In the target dependent code we already always return a int64_t. In the target independent code we carefully use uintX_t, which has the same result given 2 complement rules.

This just simplifies the code to use int64_t everywhere.


https://reviews.llvm.org/D29947

Files:
  ELF/InputSection.cpp
  ELF/Relocations.cpp
  ELF/Relocations.h
  ELF/Symbols.cpp
  ELF/Symbols.h
  ELF/SyntheticSections.cpp
  ELF/SyntheticSections.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29947.88384.patch
Type: text/x-patch
Size: 11277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170214/63912dcd/attachment.bin>


More information about the llvm-commits mailing list