diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-04 01:06:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-04 01:06:56 +0000 |
commit | 30fc933e5fbbb5f0ea60c47976d435254e378536 (patch) | |
tree | 19a0f7e4b89828c3609273aebd49d0ec19d35faf /Driver/PrintPreprocessedOutput.cpp | |
parent | e7353a6a5298d49241afaf6da58d79dd25a65c66 (diff) |
lower the interface to getLineNumber like we did for
getColumnNumber. This fixes a FIXME in
SourceManager::getPresumedLoc because we now just decompose
the sloc once.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/PrintPreprocessedOutput.cpp')
-rw-r--r-- | Driver/PrintPreprocessedOutput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Driver/PrintPreprocessedOutput.cpp b/Driver/PrintPreprocessedOutput.cpp index 2c764ade00..370adc72c4 100644 --- a/Driver/PrintPreprocessedOutput.cpp +++ b/Driver/PrintPreprocessedOutput.cpp @@ -162,7 +162,7 @@ void PrintPPOutputPPCallbacks::FileChanged(SourceLocation Loc, } Loc = SourceMgr.getInstantiationLoc(Loc); - CurLine = SourceMgr.getLineNumber(Loc); + CurLine = SourceMgr.getInstantiationLineNumber(Loc); if (DisableLineMarkers) return; |