mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
[RISCV] Fix unused variable in RISCVMCTargetDesc. NFC
Also, for better uniformity use TargetRegistry::RegisterMCAsmInfo rather than RegisterMCAsmInfoFn. Again, no functional change. llvm-svn: 295026
This commit is contained in:
parent
8c133228c6
commit
93a24638b3
@ -44,13 +44,12 @@ static MCRegisterInfo *createRISCVMCRegisterInfo(const Triple &TT) {
|
||||
|
||||
static MCAsmInfo *createRISCVMCAsmInfo(const MCRegisterInfo &MRI,
|
||||
const Triple &TT) {
|
||||
MCAsmInfo *MAI = new RISCVMCAsmInfo(TT);
|
||||
return MAI;
|
||||
return new RISCVMCAsmInfo(TT);
|
||||
}
|
||||
|
||||
extern "C" void LLVMInitializeRISCVTargetMC() {
|
||||
for (Target *T : {&getTheRISCV32Target(), &getTheRISCV64Target()}) {
|
||||
RegisterMCAsmInfoFn X(*T, createRISCVMCAsmInfo);
|
||||
TargetRegistry::RegisterMCAsmInfo(*T, createRISCVMCAsmInfo);
|
||||
TargetRegistry::RegisterMCInstrInfo(*T, createRISCVMCInstrInfo);
|
||||
TargetRegistry::RegisterMCRegInfo(*T, createRISCVMCRegisterInfo);
|
||||
TargetRegistry::RegisterMCAsmBackend(*T, createRISCVAsmBackend);
|
||||
|
Loading…
Reference in New Issue
Block a user