mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
[C++] Use 'nullptr'. Target edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207197 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -66,8 +66,8 @@ class MipsCodeEmitter : public MachineFunctionPass {
|
||||
|
||||
public:
|
||||
MipsCodeEmitter(TargetMachine &tm, JITCodeEmitter &mce)
|
||||
: MachineFunctionPass(ID), JTI(0), II(0), TD(0),
|
||||
TM(tm), MCE(mce), MCPEs(0), MJTEs(0),
|
||||
: MachineFunctionPass(ID), JTI(nullptr), II(nullptr), TD(nullptr),
|
||||
TM(tm), MCE(mce), MCPEs(nullptr), MJTEs(nullptr),
|
||||
IsPIC(TM.getRelocationModel() == Reloc::PIC_) {}
|
||||
|
||||
bool runOnMachineFunction(MachineFunction &MF);
|
||||
@@ -139,7 +139,7 @@ bool MipsCodeEmitter::runOnMachineFunction(MachineFunction &MF) {
|
||||
TD = Target.getDataLayout();
|
||||
Subtarget = &TM.getSubtarget<MipsSubtarget> ();
|
||||
MCPEs = &MF.getConstantPool()->getConstants();
|
||||
MJTEs = 0;
|
||||
MJTEs = nullptr;
|
||||
if (MF.getJumpTableInfo()) MJTEs = &MF.getJumpTableInfo()->getJumpTables();
|
||||
JTI->Initialize(MF, IsPIC, Subtarget->isLittle());
|
||||
MCE.setModuleInfo(&getAnalysis<MachineModuleInfo> ());
|
||||
|
||||
Reference in New Issue
Block a user