[all-commits] [llvm/llvm-project] 697f90: [NFC] [PowerPC] Determine Endianness in PPCTargetM...

Anshil Gandhi via All-commits all-commits at lists.llvm.org
Fri Mar 19 18:22:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 697f90ebfa7c48d61e7ed0d627b91f369b5014bd
      https://github.com/llvm/llvm-project/commit/697f90ebfa7c48d61e7ed0d627b91f369b5014bd
  Author: Anshil Gandhi <gandhi21299 at gmail.com>
  Date:   2021-03-19 (Fri, 19 Mar 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCSubtarget.cpp
    M llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
    M llvm/lib/Target/PowerPC/PPCTargetMachine.h

  Log Message:
  -----------
  [NFC] [PowerPC] Determine Endianness in PPCTargetMachine

The TargetMachine uses the triple to determine endianness. Just
use that logic rather than replicating it in PPCSubtarget.

Differential revision: https://reviews.llvm.org/D98674




More information about the All-commits mailing list