mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +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:
@ -138,7 +138,7 @@ SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV,
|
||||
|
||||
// Early exit - functions should be always in text sections.
|
||||
const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);
|
||||
if (GVar == 0)
|
||||
if (!GVar)
|
||||
return SectionKind::getText();
|
||||
|
||||
// Handle thread-local data first.
|
||||
@ -284,10 +284,10 @@ TargetLoweringObjectFile::SelectSectionForGlobal(const GlobalValue *GV,
|
||||
if (Kind.isText())
|
||||
return getTextSection();
|
||||
|
||||
if (Kind.isBSS() && BSSSection != 0)
|
||||
if (Kind.isBSS() && BSSSection != nullptr)
|
||||
return BSSSection;
|
||||
|
||||
if (Kind.isReadOnly() && ReadOnlySection != 0)
|
||||
if (Kind.isReadOnly() && ReadOnlySection != nullptr)
|
||||
return ReadOnlySection;
|
||||
|
||||
return getDataSection();
|
||||
@ -298,7 +298,7 @@ TargetLoweringObjectFile::SelectSectionForGlobal(const GlobalValue *GV,
|
||||
/// should be placed in.
|
||||
const MCSection *
|
||||
TargetLoweringObjectFile::getSectionForConstant(SectionKind Kind) const {
|
||||
if (Kind.isReadOnly() && ReadOnlySection != 0)
|
||||
if (Kind.isReadOnly() && ReadOnlySection != nullptr)
|
||||
return ReadOnlySection;
|
||||
|
||||
return DataSection;
|
||||
|
Reference in New Issue
Block a user