mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-30 04:18:16 +00:00
Replace string GNU Triples with llvm::Triple in MCAsmBackend subclasses and create*AsmBackend(). NFC.
Summary: This continues the patch series to eliminate StringRef forms of GNU triples from the internals of LLVM that began in r239036. Reviewers: echristo, rafael Reviewed By: rafael Subscribers: rafael, llvm-commits, rengolin Differential Revision: http://reviews.llvm.org/D10243 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -417,32 +417,27 @@ void MipsAsmBackend::processFixupValue(const MCAssembler &Asm,
|
||||
// MCAsmBackend
|
||||
MCAsmBackend *llvm::createMipsAsmBackendEL32(const Target &T,
|
||||
const MCRegisterInfo &MRI,
|
||||
StringRef TT,
|
||||
StringRef CPU) {
|
||||
return new MipsAsmBackend(T, Triple(TT).getOS(),
|
||||
/*IsLittle*/true, /*Is64Bit*/false);
|
||||
const Triple &TT, StringRef CPU) {
|
||||
return new MipsAsmBackend(T, TT.getOS(), /*IsLittle*/ true,
|
||||
/*Is64Bit*/ false);
|
||||
}
|
||||
|
||||
MCAsmBackend *llvm::createMipsAsmBackendEB32(const Target &T,
|
||||
const MCRegisterInfo &MRI,
|
||||
StringRef TT,
|
||||
StringRef CPU) {
|
||||
return new MipsAsmBackend(T, Triple(TT).getOS(),
|
||||
/*IsLittle*/false, /*Is64Bit*/false);
|
||||
const Triple &TT, StringRef CPU) {
|
||||
return new MipsAsmBackend(T, TT.getOS(), /*IsLittle*/ false,
|
||||
/*Is64Bit*/ false);
|
||||
}
|
||||
|
||||
MCAsmBackend *llvm::createMipsAsmBackendEL64(const Target &T,
|
||||
const MCRegisterInfo &MRI,
|
||||
StringRef TT,
|
||||
StringRef CPU) {
|
||||
return new MipsAsmBackend(T, Triple(TT).getOS(),
|
||||
/*IsLittle*/true, /*Is64Bit*/true);
|
||||
const Triple &TT, StringRef CPU) {
|
||||
return new MipsAsmBackend(T, TT.getOS(), /*IsLittle*/ true, /*Is64Bit*/ true);
|
||||
}
|
||||
|
||||
MCAsmBackend *llvm::createMipsAsmBackendEB64(const Target &T,
|
||||
const MCRegisterInfo &MRI,
|
||||
StringRef TT,
|
||||
StringRef CPU) {
|
||||
return new MipsAsmBackend(T, Triple(TT).getOS(),
|
||||
/*IsLittle*/false, /*Is64Bit*/true);
|
||||
const Triple &TT, StringRef CPU) {
|
||||
return new MipsAsmBackend(T, TT.getOS(), /*IsLittle*/ false,
|
||||
/*Is64Bit*/ true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user