diff options
| author | Eric Christopher <echristo@gmail.com> | 2014-10-03 00:17:59 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2014-10-03 00:17:59 +0000 |
| commit | 5312afe7e1b9646d096e92b30fcaf720c93186f9 (patch) | |
| tree | 84d013a9b403aefa47a062ee07e8ca5eecf2f28d /llvm/lib/Target/ARM | |
| parent | a94e592e49fb8abf818b4922a615bcf6996492aa (diff) | |
| download | bcm5719-llvm-5312afe7e1b9646d096e92b30fcaf720c93186f9.tar.gz bcm5719-llvm-5312afe7e1b9646d096e92b30fcaf720c93186f9.zip | |
constify TargetMachine argument.
llvm-svn: 218930
Diffstat (limited to 'llvm/lib/Target/ARM')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.h | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index aee8a40066b..f9834b213ca 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -164,7 +164,7 @@ static TargetLoweringObjectFile *createTLOF(const Triple &TT) { return new ARMElfTargetObjectFile(); } -ARMTargetLowering::ARMTargetLowering(TargetMachine &TM) +ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM) : TargetLowering(TM, createTLOF(Triple(TM.getTargetTriple()))) { Subtarget = &TM.getSubtarget<ARMSubtarget>(); RegInfo = TM.getSubtargetImpl()->getRegisterInfo(); diff --git a/llvm/lib/Target/ARM/ARMISelLowering.h b/llvm/lib/Target/ARM/ARMISelLowering.h index 0dd4ca260a5..a3d316e80b6 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.h +++ b/llvm/lib/Target/ARM/ARMISelLowering.h @@ -232,7 +232,7 @@ namespace llvm { class ARMTargetLowering : public TargetLowering { public: - explicit ARMTargetLowering(TargetMachine &TM); + explicit ARMTargetLowering(const TargetMachine &TM); unsigned getJumpTableEncoding() const override; diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp index a6b71de78bf..00f6575e8ff 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.cpp +++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp @@ -153,7 +153,7 @@ ARMSubtarget &ARMSubtarget::initializeSubtargetDependencies(StringRef 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) : ARMGenSubtargetInfo(TT, CPU, FS), ARMProcFamily(Others), ARMProcClass(None), stackAlignment(4), CPUString(CPU), IsLittle(IsLittle), diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h index 656a40723db..c6e756c53b7 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.h +++ b/llvm/lib/Target/ARM/ARMSubtarget.h @@ -236,7 +236,7 @@ protected: /// of the specified triple. /// 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 /// that still makes it profitable to inline the call. |

