[LoongArch] Honor the `--target-abi` option when generating e_flags
authorWeining Lu <luweining@loongson.cn>
Thu, 2 Feb 2023 03:39:25 +0000 (11:39 +0800)
committerWeining Lu <luweining@loongson.cn>
Thu, 2 Feb 2023 03:39:32 +0000 (11:39 +0800)
commit4f2fde781fa93294c480236392826dd1d2cb0741
treedfb41c9323fda8f4b9dfaae30df24bc372b6de22
parent695c81e8a61a784f881255ea62a3ea76c1e2ee51
[LoongArch] Honor the `--target-abi` option when generating e_flags

Reviewed By: xen0n, MaskRay

Differential Revision: https://reviews.llvm.org/D142837
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.h
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchELFStreamer.cpp
llvm/test/CodeGen/LoongArch/e_flags.ll