[all-commits] [llvm/llvm-project] 27edae: [RISCV][Driver] Make the ordering of CmdArgs consi...

ShihPo Hung via All-commits all-commits at lists.llvm.org
Sun Apr 18 19:06:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 27edaee84e3ea4d160f742db0b4a04e236c4e26e
      https://github.com/llvm/llvm-project/commit/27edaee84e3ea4d160f742db0b4a04e236c4e26e
  Author: ShihPo Hung <shihpo.hung at sifive.com>
  Date:   2021-04-18 (Sun, 18 Apr 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/RISCVToolchain.cpp
    A clang/test/Driver/riscv-args.c

  Log Message:
  -----------
  [RISCV][Driver] Make the ordering of CmdArgs consistent between RISCV::Linker and baremetal::Linker

In baremetal::Linker::ConstructJob, LinkerInput is handled prior to T_Group options,
but on the other side in RISCV::Linker::ConstructJob, it is opposite.

We want it to be consistent whether users are using RISCV::Linker or baremetal::Linker.

Reviewed By: MaskRay

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




More information about the All-commits mailing list