HomePhabricator

[RISCV][Driver] Make the ordering of CmdArgs consistent between RISCV::Linker…

Authored by arcbbb on Apr 18 2021, 7:05 PM.

Description

[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