[PATCH] D131813: [BOLT][NFC] Move addRelocation{X86,AArch64} into MCPlusBuilder
Rafael Auler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 25 10:49:41 PST 2023
rafauler added inline comments.
================
Comment at: bolt/include/bolt/Core/MCPlusBuilder.h:399
+ /// Return true if the relocation type is supported
+ virtual bool isSupportedRelocation(uint64_t RelType) const {
+ llvm_unreachable("not implemented");
----------------
I'm a bit confused with the name, for example, what does it mean to have a supported relocation? Why is ELF::R_AARCH64_CALL26 unsupported? I think either the comments here need to be expanded a bit or the function get a better name, because this "support" is very specific to the needs of BinaryFunction.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131813/new/
https://reviews.llvm.org/D131813
More information about the llvm-commits
mailing list