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:
@@ -53,7 +53,7 @@ namespace {
|
||||
public:
|
||||
static char ID;
|
||||
explicit Emitter(X86TargetMachine &tm, CodeEmitter &mce)
|
||||
: MachineFunctionPass(ID), II(0), TD(0), TM(tm),
|
||||
: MachineFunctionPass(ID), II(nullptr), TD(nullptr), TM(tm),
|
||||
MCE(mce), PICBaseOffset(0), Is64BitMode(false),
|
||||
IsPIC(TM.getRelocationModel() == Reloc::PIC_) {}
|
||||
|
||||
@@ -451,7 +451,7 @@ void Emitter<CodeEmitter>::emitMemModRMByte(const MachineInstr &MI,
|
||||
intptr_t PCAdj) {
|
||||
const MachineOperand &Op3 = MI.getOperand(Op+3);
|
||||
int DispVal = 0;
|
||||
const MachineOperand *DispForReloc = 0;
|
||||
const MachineOperand *DispForReloc = nullptr;
|
||||
|
||||
// Figure out what sort of displacement we have to handle here.
|
||||
if (Op3.isGlobal()) {
|
||||
|
||||
Reference in New Issue
Block a user