mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
constify the TargetMachine argument used in the subtarget and
lowering constructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218832 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3e44fc440
commit
300743f74a
@ -64,7 +64,7 @@ static TargetLoweringObjectFile *createTLOF(const Triple &TT) {
|
||||
return new PPC64LinuxTargetObjectFile();
|
||||
}
|
||||
|
||||
PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
|
||||
PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM)
|
||||
: TargetLowering(TM, createTLOF(Triple(TM.getTargetTriple()))),
|
||||
Subtarget(*TM.getSubtargetImpl()) {
|
||||
setPow2SDivIsCheap();
|
||||
|
@ -349,7 +349,7 @@ namespace llvm {
|
||||
const PPCSubtarget &Subtarget;
|
||||
|
||||
public:
|
||||
explicit PPCTargetLowering(PPCTargetMachine &TM);
|
||||
explicit PPCTargetLowering(const PPCTargetMachine &TM);
|
||||
|
||||
/// getTargetNodeName() - This method returns the name of a target specific
|
||||
/// DAG node.
|
||||
|
@ -74,7 +74,7 @@ PPCSubtarget &PPCSubtarget::initializeSubtargetDependencies(StringRef CPU,
|
||||
}
|
||||
|
||||
PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &CPU,
|
||||
const std::string &FS, PPCTargetMachine &TM)
|
||||
const std::string &FS, const PPCTargetMachine &TM)
|
||||
: PPCGenSubtargetInfo(TT, CPU, FS), TargetTriple(TT),
|
||||
DL(getDataLayoutString(TargetTriple)),
|
||||
IsPPC64(TargetTriple.getArch() == Triple::ppc64 ||
|
||||
|
@ -127,7 +127,7 @@ public:
|
||||
/// of the specified triple.
|
||||
///
|
||||
PPCSubtarget(const std::string &TT, const std::string &CPU,
|
||||
const std::string &FS, PPCTargetMachine &TM);
|
||||
const std::string &FS, const PPCTargetMachine &TM);
|
||||
|
||||
/// ParseSubtargetFeatures - Parses features string setting specified
|
||||
/// subtarget options. Definition of function is auto generated by tblgen.
|
||||
|
Loading…
Reference in New Issue
Block a user