[all-commits] [llvm/llvm-project] 386f1c: [Object] Remove conditional layout of bitfields in...

lhames via All-commits all-commits at lists.llvm.org
Thu Apr 16 16:19:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 386f1c114d5952c13760cb3368d41d09d8ba099c
      https://github.com/llvm/llvm-project/commit/386f1c114d5952c13760cb3368d41d09d8ba099c
  Author: Lang Hames <lhames at gmail.com>
  Date:   2020-04-16 (Thu, 16 Apr 2020)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/MachO.h
    M llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h
    M llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
    M llvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp

  Log Message:
  -----------
  [Object] Remove conditional layout of bitfields in MachO::relocation_info.

This removes the conditional layout of relocation_info bitfields that was
introduced in 3ccd677bf (svn r358839). The platform relocation_info
struct (defined in usr/include/mach-o/reloc.h) does not define the layout of
this struct differently on big-endian platforms and we want to keep the LLVM
and platform definitions in sync.

To fix the bug that 3ccd677bf addressed this patch modifies JITLink to construct
its relocation_info structs from the raw relocation words using shift and mask
operations.




More information about the All-commits mailing list