aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceLocation.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2018-08-15 20:32:06 +0000
committerStephen Kelly <steveire@gmail.com>2018-08-15 20:32:06 +0000
commit3124ce724a2d76f8817ba025e9542126de309924 (patch)
treed5039bbd76f07f5ccfb88c33917a6b5186370e0b /clang/lib/Basic/SourceLocation.cpp
parent942cb7b3f8ea12a26f28be3d647b8c789a10a002 (diff)
downloadllvm-3124ce724a2d76f8817ba025e9542126de309924.zip
llvm-3124ce724a2d76f8817ba025e9542126de309924.tar.gz
llvm-3124ce724a2d76f8817ba025e9542126de309924.tar.bz2
Add a newline to SourceLocation dump output
Summary: Migrate callers to print(). dump() should be useful to downstreams and third parties as a debugging aid. Everyone trips up on this and creates confusing output. Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D50661 llvm-svn: 339810
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r--clang/lib/Basic/SourceLocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp
index eb916ec..27eb119 100644
--- a/clang/lib/Basic/SourceLocation.cpp
+++ b/clang/lib/Basic/SourceLocation.cpp
@@ -77,6 +77,7 @@ SourceLocation::printToString(const SourceManager &SM) const {
LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) const {
print(llvm::errs(), SM);
+ llvm::errs() << '\n';
}
//===----------------------------------------------------------------------===//