Index: lib/Basic/Targets/RISCV.h =================================================================== --- lib/Basic/Targets/RISCV.h +++ lib/Basic/Targets/RISCV.h @@ -58,6 +58,15 @@ ArrayRef getGCCRegNames() const override; + int getEHDataRegisterNumber(unsigned RegNo) const override { + if (RegNo == 0) + return 10; + else if (RegNo == 1) + return 11; + else + return -1; + } + ArrayRef getGCCRegAliases() const override; bool validateAsmConstraint(const char *&Name,