forked from OSchip/llvm-project
Patch by
"When dumping the tokens (-dumptokens output type), the column numbers are not correctly shown. This patch fixes that issue." llvm-svn: 53796
This commit is contained in:
parent
2a28791789
commit
0fff6d3c06
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue