constify TargetMachine argument.

llvm-svn: 218930
This commit is contained in:
Eric Christopher 2014-10-03 00:17:59 +00:00
parent a94e592e49
commit 5312afe7e1
4 changed files with 4 additions and 4 deletions

View File

@ -164,7 +164,7 @@ static TargetLoweringObjectFile *createTLOF(const Triple &TT) {
return new ARMElfTargetObjectFile(); return new ARMElfTargetObjectFile();
} }
ARMTargetLowering::ARMTargetLowering(TargetMachine &TM) ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM)
: TargetLowering(TM, createTLOF(Triple(TM.getTargetTriple()))) { : TargetLowering(TM, createTLOF(Triple(TM.getTargetTriple()))) {
Subtarget = &TM.getSubtarget<ARMSubtarget>(); Subtarget = &TM.getSubtarget<ARMSubtarget>();
RegInfo = TM.getSubtargetImpl()->getRegisterInfo(); RegInfo = TM.getSubtargetImpl()->getRegisterInfo();

View File

@ -232,7 +232,7 @@ namespace llvm {
class ARMTargetLowering : public TargetLowering { class ARMTargetLowering : public TargetLowering {
public: public:
explicit ARMTargetLowering(TargetMachine &TM); explicit ARMTargetLowering(const TargetMachine &TM);
unsigned getJumpTableEncoding() const override; unsigned getJumpTableEncoding() const override;

View File

@ -153,7 +153,7 @@ ARMSubtarget &ARMSubtarget::initializeSubtargetDependencies(StringRef CPU,
} }
ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &CPU, ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &CPU,
const std::string &FS, TargetMachine &TM, const std::string &FS, const TargetMachine &TM,
bool IsLittle) bool IsLittle)
: ARMGenSubtargetInfo(TT, CPU, FS), ARMProcFamily(Others), : ARMGenSubtargetInfo(TT, CPU, FS), ARMProcFamily(Others),
ARMProcClass(None), stackAlignment(4), CPUString(CPU), IsLittle(IsLittle), ARMProcClass(None), stackAlignment(4), CPUString(CPU), IsLittle(IsLittle),

View File

@ -236,7 +236,7 @@ protected:
/// of the specified triple. /// of the specified triple.
/// ///
ARMSubtarget(const std::string &TT, const std::string &CPU, ARMSubtarget(const std::string &TT, const std::string &CPU,
const std::string &FS, TargetMachine &TM, bool IsLittle); const std::string &FS, const TargetMachine &TM, bool IsLittle);
/// getMaxInlineSizeThreshold - Returns the maximum memset / memcpy size /// getMaxInlineSizeThreshold - Returns the maximum memset / memcpy size
/// that still makes it profitable to inline the call. /// that still makes it profitable to inline the call.