mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 10:04:33 +00:00
constify TargetMachine parameter for X86TargetLowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218804 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0056820a48
commit
2e07dedce3
@ -213,8 +213,8 @@ static TargetLoweringObjectFile *createTLOF(const Triple &TT) {
|
||||
|
||||
// FIXME: This should stop caching the target machine as soon as
|
||||
// we can remove resetOperationActions et al.
|
||||
X86TargetLowering::X86TargetLowering(X86TargetMachine &TM)
|
||||
: TargetLowering(TM, createTLOF(Triple(TM.getTargetTriple()))) {
|
||||
X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM)
|
||||
: TargetLowering(TM, createTLOF(Triple(TM.getTargetTriple()))) {
|
||||
Subtarget = &TM.getSubtarget<X86Subtarget>();
|
||||
X86ScalarSSEf64 = Subtarget->hasSSE2();
|
||||
X86ScalarSSEf32 = Subtarget->hasSSE1();
|
||||
|
@ -528,7 +528,7 @@ namespace llvm {
|
||||
// X86 Implementation of the TargetLowering interface
|
||||
class X86TargetLowering final : public TargetLowering {
|
||||
public:
|
||||
explicit X86TargetLowering(X86TargetMachine &TM);
|
||||
explicit X86TargetLowering(const X86TargetMachine &TM);
|
||||
|
||||
unsigned getJumpTableEncoding() const override;
|
||||
|
||||
|
@ -331,7 +331,7 @@ X86Subtarget &X86Subtarget::initializeSubtargetDependencies(StringRef CPU,
|
||||
}
|
||||
|
||||
X86Subtarget::X86Subtarget(const std::string &TT, const std::string &CPU,
|
||||
const std::string &FS, X86TargetMachine &TM,
|
||||
const std::string &FS, const X86TargetMachine &TM,
|
||||
unsigned StackAlignOverride)
|
||||
: X86GenSubtargetInfo(TT, CPU, FS), X86ProcFamily(Others),
|
||||
PICStyle(PICStyles::None), TargetTriple(TT),
|
||||
|
@ -252,7 +252,7 @@ public:
|
||||
/// of the specified triple.
|
||||
///
|
||||
X86Subtarget(const std::string &TT, const std::string &CPU,
|
||||
const std::string &FS, X86TargetMachine &TM,
|
||||
const std::string &FS, const X86TargetMachine &TM,
|
||||
unsigned StackAlignOverride);
|
||||
|
||||
const X86TargetLowering *getTargetLowering() const override {
|
||||
|
Loading…
Reference in New Issue
Block a user