mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
constify TargetMachine parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218934 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
820664686a
commit
8f09464bc9
@ -76,7 +76,7 @@ static TargetLoweringObjectFile *createTLOF(const Triple &TT) {
|
||||
return new AArch64_ELFTargetObjectFile();
|
||||
}
|
||||
|
||||
AArch64TargetLowering::AArch64TargetLowering(TargetMachine &TM)
|
||||
AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM)
|
||||
: TargetLowering(TM, createTLOF(Triple(TM.getTargetTriple()))) {
|
||||
Subtarget = &TM.getSubtarget<AArch64Subtarget>();
|
||||
|
||||
|
@ -204,7 +204,7 @@ class AArch64TargetLowering : public TargetLowering {
|
||||
bool RequireStrictAlign;
|
||||
|
||||
public:
|
||||
explicit AArch64TargetLowering(TargetMachine &TM);
|
||||
explicit AArch64TargetLowering(const TargetMachine &TM);
|
||||
|
||||
/// Selects the correct CCAssignFn for a given CallingConvention value.
|
||||
CCAssignFn *CCAssignFnForCall(CallingConv::ID CC, bool IsVarArg) const;
|
||||
|
@ -43,8 +43,8 @@ AArch64Subtarget::initializeSubtargetDependencies(StringRef FS) {
|
||||
|
||||
AArch64Subtarget::AArch64Subtarget(const std::string &TT,
|
||||
const std::string &CPU,
|
||||
const std::string &FS, TargetMachine &TM,
|
||||
bool LittleEndian)
|
||||
const std::string &FS,
|
||||
const TargetMachine &TM, bool LittleEndian)
|
||||
: AArch64GenSubtargetInfo(TT, CPU, FS), ARMProcFamily(Others),
|
||||
HasFPARMv8(false), HasNEON(false), HasCrypto(false), HasCRC(false),
|
||||
HasZeroCycleRegMove(false), HasZeroCycleZeroing(false), CPUString(CPU),
|
||||
|
@ -69,7 +69,8 @@ public:
|
||||
/// This constructor initializes the data members to match that
|
||||
/// of the specified triple.
|
||||
AArch64Subtarget(const std::string &TT, const std::string &CPU,
|
||||
const std::string &FS, TargetMachine &TM, bool LittleEndian);
|
||||
const std::string &FS, const TargetMachine &TM,
|
||||
bool LittleEndian);
|
||||
|
||||
const AArch64SelectionDAGInfo *getSelectionDAGInfo() const override {
|
||||
return &TSInfo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user