mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
constify TargetMachine argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1340986490
commit
59cacc9dec
@ -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();
|
||||
|
@ -232,7 +232,7 @@ namespace llvm {
|
||||
|
||||
class ARMTargetLowering : public TargetLowering {
|
||||
public:
|
||||
explicit ARMTargetLowering(TargetMachine &TM);
|
||||
explicit ARMTargetLowering(const TargetMachine &TM);
|
||||
|
||||
unsigned getJumpTableEncoding() const override;
|
||||
|
||||
|
@ -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),
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user