mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
constify TargetMachine parameter.
llvm-svn: 218934
This commit is contained in:
parent
2cabaedda7
commit
47c04156aa
@ -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…
Reference in New Issue
Block a user