mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Improve some const-correctness to remove a -Wcast-qual warning. No functional changes intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b3fa38731
commit
93b7c0b8fe
@ -106,7 +106,7 @@ static void ComputePTXValueVTs(const TargetLowering &TLI, Type *Ty,
|
||||
}
|
||||
|
||||
// NVPTXTargetLowering Constructor.
|
||||
NVPTXTargetLowering::NVPTXTargetLowering(NVPTXTargetMachine &TM)
|
||||
NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM)
|
||||
: TargetLowering(TM, new NVPTXTargetObjectFile()), nvTM(&TM),
|
||||
nvptxSubtarget(TM.getSubtarget<NVPTXSubtarget>()) {
|
||||
|
||||
|
@ -436,7 +436,7 @@ class NVPTXSubtarget;
|
||||
//===--------------------------------------------------------------------===//
|
||||
class NVPTXTargetLowering : public TargetLowering {
|
||||
public:
|
||||
explicit NVPTXTargetLowering(NVPTXTargetMachine &TM);
|
||||
explicit NVPTXTargetLowering(const NVPTXTargetMachine &TM);
|
||||
SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
|
||||
|
||||
SDValue LowerGlobalAddress(SDValue Op, SelectionDAG &DAG) const;
|
||||
@ -495,7 +495,7 @@ public:
|
||||
std::vector<SDValue> &Ops,
|
||||
SelectionDAG &DAG) const override;
|
||||
|
||||
NVPTXTargetMachine *nvTM;
|
||||
const NVPTXTargetMachine *nvTM;
|
||||
|
||||
// PTX always uses 32-bit shift amounts
|
||||
MVT getScalarShiftAmountTy(EVT LHSTy) const override { return MVT::i32; }
|
||||
|
@ -59,7 +59,8 @@ NVPTXSubtarget::NVPTXSubtarget(const std::string &TT, const std::string &CPU,
|
||||
: NVPTXGenSubtargetInfo(TT, CPU, FS), Is64Bit(is64Bit), PTXVersion(0),
|
||||
SmVersion(20), DL(computeDataLayout(is64Bit)),
|
||||
InstrInfo(initializeSubtargetDependencies(CPU, FS)),
|
||||
TLInfo((NVPTXTargetMachine &)TM), TSInfo(&DL), FrameLowering(*this) {
|
||||
TLInfo((const NVPTXTargetMachine &)TM), TSInfo(&DL),
|
||||
FrameLowering(*this) {
|
||||
|
||||
Triple T(TT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user