diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-08-15 20:32:06 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-08-15 20:32:06 +0000 |
commit | 3124ce724a2d76f8817ba025e9542126de309924 (patch) | |
tree | d5039bbd76f07f5ccfb88c33917a6b5186370e0b /clang/lib/Lex/Preprocessor.cpp | |
parent | 942cb7b3f8ea12a26f28be3d647b8c789a10a002 (diff) | |
download | bcm5719-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.cpp | 2 |
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 { |