From: Diego Novillo Date: Thu, 30 Oct 2014 20:19:19 +0000 (+0000) Subject: Fix comment spelling and tidy diagnostic call in profile reader. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6f01d27a0e5bae68167f514c451dc6f3545568b0;p=oota-llvm.git Fix comment spelling and tidy diagnostic call in profile reader. No functional changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220922 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ProfileData/SampleProfReader.h b/include/llvm/ProfileData/SampleProfReader.h index a6848ff38b7..e52ecf8e212 100644 --- a/include/llvm/ProfileData/SampleProfReader.h +++ b/include/llvm/ProfileData/SampleProfReader.h @@ -86,9 +86,8 @@ public: /// \brief Report a parse error message. void reportParseError(int64_t LineNumber, Twine Msg) const { - DiagnosticInfoSampleProfile Diag(Buffer->getBufferIdentifier(), LineNumber, - Msg); - Ctx.diagnose(Diag); + Ctx.diagnose(DiagnosticInfoSampleProfile(Buffer->getBufferIdentifier(), + LineNumber, Msg)); } /// \brief Create a sample profile reader appropriate to the file format. diff --git a/include/llvm/ProfileData/SampleProfWriter.h b/include/llvm/ProfileData/SampleProfWriter.h index d190208e75d..62de704c3af 100644 --- a/include/llvm/ProfileData/SampleProfWriter.h +++ b/include/llvm/ProfileData/SampleProfWriter.h @@ -77,6 +77,6 @@ public: } // End namespace sampleprof -} // End namespace sampleprof +} // End namespace llvm #endif // LLVM_PROFILEDATA_SAMPLEPROFWRITER_H