[llvm] r220922 - Fix comment spelling and tidy diagnostic call in profile reader.
Diego Novillo
dnovillo at google.com
Thu Oct 30 13:19:19 PDT 2014
Author: dnovillo
Date: Thu Oct 30 15:19:19 2014
New Revision: 220922
URL: http://llvm.org/viewvc/llvm-project?rev=220922&view=rev
Log:
Fix comment spelling and tidy diagnostic call in profile reader.
No functional changes.
Modified:
llvm/trunk/include/llvm/ProfileData/SampleProfReader.h
llvm/trunk/include/llvm/ProfileData/SampleProfWriter.h
Modified: llvm/trunk/include/llvm/ProfileData/SampleProfReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/SampleProfReader.h?rev=220922&r1=220921&r2=220922&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/SampleProfReader.h (original)
+++ llvm/trunk/include/llvm/ProfileData/SampleProfReader.h Thu Oct 30 15:19:19 2014
@@ -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.
Modified: llvm/trunk/include/llvm/ProfileData/SampleProfWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/SampleProfWriter.h?rev=220922&r1=220921&r2=220922&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/SampleProfWriter.h (original)
+++ llvm/trunk/include/llvm/ProfileData/SampleProfWriter.h Thu Oct 30 15:19:19 2014
@@ -77,6 +77,6 @@ public:
} // End namespace sampleprof
-} // End namespace sampleprof
+} // End namespace llvm
#endif // LLVM_PROFILEDATA_SAMPLEPROFWRITER_H
More information about the llvm-commits
mailing list