summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2014-10-30 20:19:19 +0000
committerDiego Novillo <dnovillo@google.com>2014-10-30 20:19:19 +0000
commit047d5d1a0ace660e524e42e416d6b99e29c0d340 (patch)
tree0556a5bebdd1c1685c0471475c2ef551293c7c18 /llvm
parentc19cf1d424161a9449b8f2b2e2d31da8b82c5e79 (diff)
downloadbcm5719-llvm-047d5d1a0ace660e524e42e416d6b99e29c0d340.tar.gz
bcm5719-llvm-047d5d1a0ace660e524e42e416d6b99e29c0d340.zip
Fix comment spelling and tidy diagnostic call in profile reader.
No functional changes. llvm-svn: 220922
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ProfileData/SampleProfReader.h5
-rw-r--r--llvm/include/llvm/ProfileData/SampleProfWriter.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/llvm/include/llvm/ProfileData/SampleProfReader.h b/llvm/include/llvm/ProfileData/SampleProfReader.h
index a6848ff38b7..e52ecf8e212 100644
--- a/llvm/include/llvm/ProfileData/SampleProfReader.h
+++ b/llvm/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/llvm/include/llvm/ProfileData/SampleProfWriter.h b/llvm/include/llvm/ProfileData/SampleProfWriter.h
index d190208e75d..62de704c3af 100644
--- a/llvm/include/llvm/ProfileData/SampleProfWriter.h
+++ b/llvm/include/llvm/ProfileData/SampleProfWriter.h
@@ -77,6 +77,6 @@ public:
} // End namespace sampleprof
-} // End namespace sampleprof
+} // End namespace llvm
#endif // LLVM_PROFILEDATA_SAMPLEPROFWRITER_H
OpenPOWER on IntegriCloud