forked from OSchip/llvm-project
[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
be227955e2
commit
d36e04cb6c
|
@ -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