summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.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/Lex/Preprocessor.cpp
parent942cb7b3f8ea12a26f28be3d647b8c789a10a002 (diff)
downloadbcm5719-llvm-3124ce724a2d76f8817ba025e9542126de309924.tar.gz
bcm5719-llvm-3124ce724a2d76f8817ba025e9542126de309924.zip
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/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index bfeaa03d85d..c7da41172f8 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -250,7 +250,7 @@ void Preprocessor::DumpToken(const Token &Tok, bool DumpFlags) const {
}
void Preprocessor::DumpLocation(SourceLocation Loc) const {
- Loc.dump(SourceMgr);
+ Loc.print(llvm::errs(), SourceMgr);
}
void Preprocessor::DumpMacro(const MacroInfo &MI) const {
OpenPOWER on IntegriCloud