diff options
author | Koakuma <koachan@protonmail.com> | 2024-01-10 21:39:29 +0700 |
---|---|---|
committer | Koakuma <koachan@protonmail.com> | 2024-01-10 21:39:29 +0700 |
commit | 72990df072a56996612169f07c5752a6924288bb (patch) | |
tree | fac93dc4d1b2d28941eb424104c95cc601993d9e | |
parent | d04b31491feebc5d13b071af099ae7263d7a18a8 (diff) | |
download | llvm-72990df072a56996612169f07c5752a6924288bb.zip llvm-72990df072a56996612169f07c5752a6924288bb.tar.gz llvm-72990df072a56996612169f07c5752a6924288bb.tar.bz2 |
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.4
[skip ci]
-rw-r--r-- | llvm/lib/Target/Sparc/SparcSubtarget.cpp | 10 | ||||
-rw-r--r-- | llvm/lib/Target/Sparc/SparcSubtarget.h | 5 | ||||
-rw-r--r-- | llvm/lib/Target/Sparc/SparcTargetMachine.cpp | 2 |
3 files changed, 8 insertions, 9 deletions
diff --git a/llvm/lib/Target/Sparc/SparcSubtarget.cpp b/llvm/lib/Target/Sparc/SparcSubtarget.cpp index a5d196c..6b09904 100644 --- a/llvm/lib/Target/Sparc/SparcSubtarget.cpp +++ b/llvm/lib/Target/Sparc/SparcSubtarget.cpp @@ -12,6 +12,7 @@ #include "SparcSubtarget.h" #include "Sparc.h" +#include "llvm/ADT/StringRef.h" #include "llvm/MC/TargetRegistry.h" #include "llvm/Support/MathExtras.h" @@ -45,12 +46,11 @@ SparcSubtarget &SparcSubtarget::initializeSubtargetDependencies( return *this; } -SparcSubtarget::SparcSubtarget(const Triple &TT, const std::string &CPU, - const std::string &TuneCPU, - const std::string &FS, const TargetMachine &TM, +SparcSubtarget::SparcSubtarget(const StringRef &CPU, const StringRef &TuneCPU, + const StringRef &FS, const TargetMachine &TM, bool is64Bit) - : SparcGenSubtargetInfo(TT, CPU, TuneCPU, FS), TargetTriple(TT), - Is64Bit(is64Bit), + : SparcGenSubtargetInfo(TM.getTargetTriple(), CPU, TuneCPU, FS), + TargetTriple(TM.getTargetTriple()), Is64Bit(is64Bit), InstrInfo(initializeSubtargetDependencies(CPU, TuneCPU, FS)), TLInfo(TM, *this), FrameLowering(*this) {} diff --git a/llvm/lib/Target/Sparc/SparcSubtarget.h b/llvm/lib/Target/Sparc/SparcSubtarget.h index 4363942..cdb210f 100644 --- a/llvm/lib/Target/Sparc/SparcSubtarget.h +++ b/llvm/lib/Target/Sparc/SparcSubtarget.h @@ -44,9 +44,8 @@ class SparcSubtarget : public SparcGenSubtargetInfo { SparcFrameLowering FrameLowering; public: - SparcSubtarget(const Triple &TT, const std::string &CPU, - const std::string &TuneCPU, const std::string &FS, - const TargetMachine &TM, bool is64bit); + SparcSubtarget(const StringRef &CPU, const StringRef &TuneCPU, + const StringRef &FS, const TargetMachine &TM, bool is64bit); const SparcInstrInfo *getInstrInfo() const override { return &InstrInfo; } const TargetFrameLowering *getFrameLowering() const override { diff --git a/llvm/lib/Target/Sparc/SparcTargetMachine.cpp b/llvm/lib/Target/Sparc/SparcTargetMachine.cpp index ae7bbce..b408af2 100644 --- a/llvm/lib/Target/Sparc/SparcTargetMachine.cpp +++ b/llvm/lib/Target/Sparc/SparcTargetMachine.cpp @@ -140,7 +140,7 @@ SparcTargetMachine::getSubtargetImpl(const Function &F) const { // creation will depend on the TM and the code generation flags on the // function that reside in TargetOptions. resetTargetOptions(F); - I = std::make_unique<SparcSubtarget>(TargetTriple, CPU, TuneCPU, FS, *this, + I = std::make_unique<SparcSubtarget>(CPU, TuneCPU, FS, *this, this->is64Bit); } return I.get(); |