[all-commits] [llvm/llvm-project] 9fee2a: [BOLT][NFC] Split createRelocation in X86 and shar...

Jiapeng Zhou via All-commits all-commits at lists.llvm.org
Tue Aug 22 09:30:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9fee2ac044f9a235cec44c0d3ae1ad8d50e41047
      https://github.com/llvm/llvm-project/commit/9fee2ac044f9a235cec44c0d3ae1ad8d50e41047
  Author: zhoujiapeng <zjpzhoujiapeng at 163.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M bolt/include/bolt/Core/MCPlusBuilder.h
    M bolt/lib/Target/X86/X86MCPlusBuilder.cpp

  Log Message:
  -----------
  [BOLT][NFC] Split createRelocation in X86 and share the second part

This commit splits the createRelocation function for the X86 architecture
into two parts, retaining the first half and moving the second half to a
new function called extractFixupExpr. The purpose of this change is to make
extractFixupExpr a shared function between AArch64 and X86 architectures,
increasing code reusability and maintainability.

Child revision: https://reviews.llvm.org/D156018

Reviewed By: Amir

Differential Revision: https://reviews.llvm.org/D157217




More information about the All-commits mailing list