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 | 109949a5f5f8c1e9f917095706639167cfe9260f (patch) | |
tree | 82822b3aad6b5f974de600105275f72bf09c4a4d /lib/Lex/Preprocessor.cpp | |
parent | fbeeca84dd1993d2656e9a259f5d7ee54fe3b162 (diff) |
Patch by
"When dumping the tokens (-dumptokens output type), the column numbers are not
correctly shown. This patch fixes that issue."
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-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 32ee8f0c81..631b8361e9 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/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) { |