[RISCV] Check the target-abi module flag matches the option
authorZakk Chen <zakk.chen@sifive.com>
Wed, 15 Jan 2020 14:41:08 +0000 (06:41 -0800)
committerZakk Chen <zakk.chen@sifive.com>
Tue, 21 Jan 2020 15:32:12 +0000 (07:32 -0800)
commit1256d68093ac1696034e385bbb4cb6e516b66bea
treef8af1bccba27c58d787d8a2b7c94126d251b9823
parent2147703bde1e1a7a1b89ccb66f55d36fd17620f1
[RISCV] Check the target-abi module flag matches the option

Reviewers: lenary, asb

Reviewed By: lenary

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72768
llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.cpp
llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h
llvm/test/CodeGen/RISCV/module-target-abi.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/module-target-abi2.ll [new file with mode: 0644]