[all-commits] [llvm/llvm-project] f533ec: Make the BBAddrMap struct binary-format-agnostic.
Rahman Lavaee via All-commits
all-commits at lists.llvm.org
Thu Nov 4 10:27:56 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f533ec37eb23e709009dc0f753771b2144819c73
https://github.com/llvm/llvm-project/commit/f533ec37eb23e709009dc0f753771b2144819c73
Author: Rahman Lavaee <rahmanl at google.com>
Date: 2021-11-04 (Thu, 04 Nov 2021)
Changed paths:
M llvm/include/llvm/Object/ELF.h
M llvm/include/llvm/Object/ELFTypes.h
M llvm/lib/Object/ELF.cpp
M llvm/tools/llvm-readobj/ELFDumper.cpp
Log Message:
-----------
Make the BBAddrMap struct binary-format-agnostic.
The only binary-format-related field in the BBAddrMap structure is the function address (`Addr`), which will use uint64_t in 64B format and uint32_t in 32B format. This patch changes it to use uint64_t in both formats.
This allows non-templated use of the struct, at the expense of a marginal additional size overhead for the 32-bit format. The size of the BB address map section does not change.
Differential Revision: https://reviews.llvm.org/D112679
More information about the All-commits
mailing list