diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-04-28 04:05:08 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-04-28 04:05:08 +0000 |
commit | e73658ddbb995c432db9ae171798102a5a42ffda (patch) | |
tree | 9884185545168acee002d3fab1bc6f4e123ac0d1 /llvm/lib/Target/Sparc | |
parent | 09ced5f66b41107fedea949e1c1deee081ca51c7 (diff) | |
download | bcm5719-llvm-e73658ddbb995c432db9ae171798102a5a42ffda.tar.gz bcm5719-llvm-e73658ddbb995c432db9ae171798102a5a42ffda.zip |
[C++] Use 'nullptr'.
llvm-svn: 207394
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r-- | llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/Sparc/InstPrinter/SparcInstPrinter.h | 2 | ||||
-rw-r--r-- | llvm/lib/Target/Sparc/SparcFrameLowering.h | 2 | ||||
-rw-r--r-- | llvm/lib/Target/Sparc/SparcRegisterInfo.h | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp b/llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp index bf3f7e9df25..9f3ef1c4b2e 100644 --- a/llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp +++ b/llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp @@ -245,7 +245,7 @@ public: case k_Immediate: OS << "Imm: " << getImm() << "\n"; break; case k_MemoryReg: OS << "Mem: " << getMemBase() << "+" << getMemOffsetReg() << "\n"; break; - case k_MemoryImm: assert(getMemOff() != 0); + case k_MemoryImm: assert(getMemOff() != nullptr); OS << "Mem: " << getMemBase() << "+" << *getMemOff() << "\n"; break; diff --git a/llvm/lib/Target/Sparc/InstPrinter/SparcInstPrinter.h b/llvm/lib/Target/Sparc/InstPrinter/SparcInstPrinter.h index 45ee6c027f9..056542096ba 100644 --- a/llvm/lib/Target/Sparc/InstPrinter/SparcInstPrinter.h +++ b/llvm/lib/Target/Sparc/InstPrinter/SparcInstPrinter.h @@ -42,7 +42,7 @@ public: void printOperand(const MCInst *MI, int opNum, raw_ostream &OS); void printMemOperand(const MCInst *MI, int opNum, raw_ostream &OS, - const char *Modifier = 0); + const char *Modifier = nullptr); void printCCOperand(const MCInst *MI, int opNum, raw_ostream &OS); bool printGetPCX(const MCInst *MI, unsigned OpNo, raw_ostream &OS); diff --git a/llvm/lib/Target/Sparc/SparcFrameLowering.h b/llvm/lib/Target/Sparc/SparcFrameLowering.h index 072fde39383..c13ca1a0148 100644 --- a/llvm/lib/Target/Sparc/SparcFrameLowering.h +++ b/llvm/lib/Target/Sparc/SparcFrameLowering.h @@ -41,7 +41,7 @@ public: bool hasReservedCallFrame(const MachineFunction &MF) const; bool hasFP(const MachineFunction &MF) const; void processFunctionBeforeCalleeSavedScan(MachineFunction &MF, - RegScavenger *RS = NULL) const; + RegScavenger *RS = nullptr) const; private: // Remap input registers to output registers for leaf procedure. diff --git a/llvm/lib/Target/Sparc/SparcRegisterInfo.h b/llvm/lib/Target/Sparc/SparcRegisterInfo.h index 3f3e12ff137..d3b9d60cdda 100644 --- a/llvm/lib/Target/Sparc/SparcRegisterInfo.h +++ b/llvm/lib/Target/Sparc/SparcRegisterInfo.h @@ -31,7 +31,7 @@ struct SparcRegisterInfo : public SparcGenRegisterInfo { SparcRegisterInfo(SparcSubtarget &st); /// Code Generation virtual methods... - const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF = 0) const; + const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF =nullptr) const; const uint32_t* getCallPreservedMask(CallingConv::ID CC) const; const uint32_t* getRTCallPreservedMask(CallingConv::ID CC) const; @@ -43,10 +43,10 @@ struct SparcRegisterInfo : public SparcGenRegisterInfo { void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, - RegScavenger *RS = NULL) const; + RegScavenger *RS = nullptr) const; void processFunctionBeforeFrameFinalized(MachineFunction &MF, - RegScavenger *RS = NULL) const; + RegScavenger *RS = nullptr) const; // Debug information queries. unsigned getFrameRegister(const MachineFunction &MF) const; |