forked from OSchip/llvm-project
constify TargetMachine parameter for X86TargetLowering.
llvm-svn: 218804
This commit is contained in:
parent
7b2cd9ad86
commit
12f4a78581
|
@ -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