Fix comment spelling and tidy diagnostic call in profile reader.
authorDiego Novillo <dnovillo@google.com>
Thu, 30 Oct 2014 20:19:19 +0000 (20:19 +0000)
committerDiego Novillo <dnovillo@google.com>
Thu, 30 Oct 2014 20:19:19 +0000 (20:19 +0000)
No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220922 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ProfileData/SampleProfReader.h
include/llvm/ProfileData/SampleProfWriter.h

index a6848ff38b771d6e3a81a0347ad9855eb99bdc18..e52ecf8e2123dace529fa924ca3233e2882bf28e 100644 (file)
@@ -86,9 +86,8 @@ public:
 
   /// \brief Report a parse error message.
   void reportParseError(int64_t LineNumber, Twine Msg) const {
 
   /// \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.
   }
 
   /// \brief Create a sample profile reader appropriate to the file format.
index d190208e75d3c4a37e6356aa6de559ca0dd48e46..62de704c3af204caa996c54ecf86d69d6467d608 100644 (file)
@@ -77,6 +77,6 @@ public:
 
 } // End namespace sampleprof
 
 
 } // End namespace sampleprof
 
-} // End namespace sampleprof
+} // End namespace llvm
 
 #endif // LLVM_PROFILEDATA_SAMPLEPROFWRITER_H
 
 #endif // LLVM_PROFILEDATA_SAMPLEPROFWRITER_H