commit | f8f4b905448ae242ea08c84c0a36abc0431dc98b | [log] [tgz] |
---|---|---|
author | Alex Bradbury <asb@lowrisc.org> | Thu Dec 07 13:19:57 2017 +0000 |
committer | Alex Bradbury <asb@lowrisc.org> | Thu Dec 07 13:19:57 2017 +0000 |
tree | 87bd86c19960e3e11d24595ddf18a06a049e201d | |
parent | 9f6aec4b7aab9a0c0d33bff634af0e148ed580ef [diff] [blame] |
[RISCV] MC layer support for the jump/branch instructions of the RVC extension Differential Revision: https://reviews.llvm.org/D40002 Patch by Shiva Chen. llvm-svn: 320038
diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp index e256156..ad53228 100644 --- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp +++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
@@ -59,6 +59,10 @@ return ELF::R_RISCV_JAL; case RISCV::fixup_riscv_branch: return ELF::R_RISCV_BRANCH; + case RISCV::fixup_riscv_rvc_jump: + return ELF::R_RISCV_RVC_JUMP; + case RISCV::fixup_riscv_rvc_branch: + return ELF::R_RISCV_RVC_BRANCH; } }