[cfe-commits] r53796 - /cfe/trunk/lib/Lex/Preprocessor.cpp

Ted Kremenek kremenek at apple.com
Sat Jul 19 12:10:04 PDT 2008


Author: kremenek
Date: Sat Jul 19 14:10:04 2008
New Revision: 53796

URL: http://llvm.org/viewvc/llvm-project?rev=53796&view=rev
Log:
Patch by

"When dumping the tokens (-dumptokens output type), the column numbers are not
correctly shown. This patch fixes that issue."


Modified:
    cfe/trunk/lib/Lex/Preprocessor.cpp

Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=53796&r1=53795&r2=53796&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Sat Jul 19 14:10:04 2008
@@ -172,7 +172,7 @@
   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) {





More information about the cfe-commits mailing list