[RISCV] Enable LLVM backend.
This commit is contained in:
parent
8c069ceba8
commit
2d5f62fb48
4 changed files with 19 additions and 2 deletions
|
@ -171,6 +171,12 @@ bool LLVMRustPassManagerBuilderPopulateThinLTOPassManager(
|
|||
#define SUBTARGET_MSP430
|
||||
#endif
|
||||
|
||||
#ifdef LLVM_COMPONENT_RISCV
|
||||
#define SUBTARGET_RISCV SUBTARGET(RISCV)
|
||||
#else
|
||||
#define SUBTARGET_RISCV
|
||||
#endif
|
||||
|
||||
#ifdef LLVM_COMPONENT_SPARC
|
||||
#define SUBTARGET_SPARC SUBTARGET(Sparc)
|
||||
#else
|
||||
|
@ -192,7 +198,8 @@ bool LLVMRustPassManagerBuilderPopulateThinLTOPassManager(
|
|||
SUBTARGET_SYSTEMZ \
|
||||
SUBTARGET_MSP430 \
|
||||
SUBTARGET_SPARC \
|
||||
SUBTARGET_HEXAGON
|
||||
SUBTARGET_HEXAGON \
|
||||
SUBTARGET_RISCV \
|
||||
|
||||
#define SUBTARGET(x) \
|
||||
namespace llvm { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue