[all-commits] [llvm/llvm-project] be646e: llvm-lto: default Relocation Model should be selec...

David Tenty via All-commits all-commits at lists.llvm.org
Wed Mar 10 14:31:52 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be646e31487b22f7f546fe91a978283581cc6dbb
      https://github.com/llvm/llvm-project/commit/be646e31487b22f7f546fe91a978283581cc6dbb
  Author: Wael Yehia <wyehia at ca.ibm.com>
  Date:   2021-03-10 (Wed, 10 Mar 2021)

  Changed paths:
    M llvm/lib/LTO/LTOBackend.cpp
    A test/tools/llvm-lto/aix.ll

  Log Message:
  -----------
  llvm-lto: default Relocation Model should be selected by the TargetMachine.

Right now, the createTargetMachine function in LTOBackend.cpp (used by llvm-lto, and other components) selects the default Relocation Model when none is specified in the module.
Other components (such as opt and llc) that construct a TargetMachine delegate the decision on the default value to the polymorphic TargetMachine's constructor.

This commit aligns llvm-lto with other components.

Reviewed By: daltenty, fhahn

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




More information about the All-commits mailing list