mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
[C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -73,8 +73,8 @@ namespace llvm {
|
||||
Instruction *Destination) :
|
||||
Src(Source),
|
||||
Dst(Destination),
|
||||
NextPredecessor(NULL),
|
||||
NextSuccessor(NULL) {}
|
||||
NextPredecessor(nullptr),
|
||||
NextSuccessor(nullptr) {}
|
||||
virtual ~Dependence() {}
|
||||
|
||||
/// Dependence::DVEntry - Each level in the distance/direction vector
|
||||
@ -96,7 +96,7 @@ namespace llvm {
|
||||
bool Splitable : 1; // Splitting the loop will break dependence.
|
||||
const SCEV *Distance; // NULL implies no distance available.
|
||||
DVEntry() : Direction(ALL), Scalar(true), PeelFirst(false),
|
||||
PeelLast(false), Splitable(false), Distance(NULL) { }
|
||||
PeelLast(false), Splitable(false), Distance(nullptr) { }
|
||||
};
|
||||
|
||||
/// getSrc - Returns the source instruction for this dependence.
|
||||
@ -154,7 +154,7 @@ namespace llvm {
|
||||
|
||||
/// getDistance - Returns the distance (or NULL) associated with a
|
||||
/// particular level.
|
||||
virtual const SCEV *getDistance(unsigned Level) const { return NULL; }
|
||||
virtual const SCEV *getDistance(unsigned Level) const { return nullptr; }
|
||||
|
||||
/// isPeelFirst - Returns true if peeling the first iteration from
|
||||
/// this loop will break this dependence.
|
||||
@ -921,7 +921,7 @@ namespace llvm {
|
||||
bool runOnFunction(Function &F) override;
|
||||
void releaseMemory() override;
|
||||
void getAnalysisUsage(AnalysisUsage &) const override;
|
||||
void print(raw_ostream &, const Module * = 0) const override;
|
||||
void print(raw_ostream &, const Module * = nullptr) const override;
|
||||
}; // class DependenceAnalysis
|
||||
|
||||
/// createDependenceAnalysisPass - This creates an instance of the
|
||||
|
Reference in New Issue
Block a user