X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FProfileData%2FSampleProf.h;fp=include%2Fllvm%2FProfileData%2FSampleProf.h;h=7b7e6c46cd84bdbd4853c0900802bb3aa12ab8d0;hp=96df141e4b2556ad9543db365d78418923d99d9f;hb=4e036ff575c54e01aea7f8028d282974480b071e;hpb=32968f1f6e71a3a98645bcc13d0cd901fa717617 diff --git a/include/llvm/ProfileData/SampleProf.h b/include/llvm/ProfileData/SampleProf.h index 96df141e4b2..7b7e6c46cd8 100644 --- a/include/llvm/ProfileData/SampleProf.h +++ b/include/llvm/ProfileData/SampleProf.h @@ -11,6 +11,7 @@ // sample profile data. // //===----------------------------------------------------------------------===// + #ifndef LLVM_PROFILEDATA_SAMPLEPROF_H_ #define LLVM_PROFILEDATA_SAMPLEPROF_H_ @@ -245,7 +246,7 @@ public: findFunctionSamplesAt(const CallsiteLocation &Loc) const { auto iter = CallsiteSamples.find(Loc); if (iter == CallsiteSamples.end()) { - return NULL; + return nullptr; } else { return &iter->second; } @@ -322,8 +323,8 @@ private: CallsiteSampleMap CallsiteSamples; }; -} // End namespace sampleprof +} // end namespace sampleprof -} // End namespace llvm +} // end namespace llvm #endif // LLVM_PROFILEDATA_SAMPLEPROF_H_