diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-19 19:10:04 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-19 19:10:04 +0000 |
commit | 0fff6d3c06fe3b86904580f523a0f77f12eefd1b (patch) | |
tree | ea2a8e7197b7a17f79c8e09272d5cbae931af634 /clang/lib/Lex/Preprocessor.cpp | |
parent | 2a287917896e2a597da4672ed9e8ff65162d2a42 (diff) | |
download | bcm5719-llvm-0fff6d3c06fe3b86904580f523a0f77f12eefd1b.tar.gz bcm5719-llvm-0fff6d3c06fe3b86904580f523a0f77f12eefd1b.zip |
Patch by
"When dumping the tokens (-dumptokens output type), the column numbers are not
correctly shown. This patch fixes that issue."
llvm-svn: 53796
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 32ee8f0c817..631b8361e90 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -172,7 +172,7 @@ void Preprocessor::DumpLocation(SourceLocation Loc) const { SourceLocation LogLoc = SourceMgr.getLogicalLoc(Loc); llvm::cerr << SourceMgr.getSourceName(LogLoc) << ':' << SourceMgr.getLineNumber(LogLoc) << ':' - << SourceMgr.getLineNumber(LogLoc); + << SourceMgr.getColumnNumber(LogLoc); SourceLocation PhysLoc = SourceMgr.getPhysicalLoc(Loc); if (PhysLoc != LogLoc) { |