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 | 8601e55c98b1dddab0ce64d58937b31f590390ca (patch) | |
tree | 9fe1d64ae3a3ecf573a26cd1c06f049f333a63af /lib/Lex | |
parent | d032410f8ef9a4e1d3086ddd8211c4555bfef8f5 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339810 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index bfeaa03d85..c7da41172f 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/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 { |