diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-04 00:55:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-04 00:55:58 +0000 |
commit | 7da5aea7669e6db3e593162b8a123aef06a04d07 (patch) | |
tree | 4af3a673a35337a49ec9d99787d73fd82588c227 /lib/Analysis/GRExprEngine.cpp | |
parent | be395f6b29762c37938637ffef5f59514e04751a (diff) |
make SM::getColumnNumber take a predecomposed FileID/offset, which
makes it clear to clients that they have to pick an instantiation
or spelling location before calling it and allows optimization based
on that.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | lib/Analysis/GRExprEngine.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index 5268e1324f..616006cc8e 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -2783,8 +2783,10 @@ struct VISIBILITY_HIDDEN DOTGraphTraits<GRExprEngine::NodeTy*> : if (SLoc.isFileID()) { Out << "\\lline=" - << GraphPrintSourceManager->getLineNumber(SLoc) << " col=" - << GraphPrintSourceManager->getColumnNumber(SLoc) << "\\l"; + << GraphPrintSourceManager->getInstantiationLineNumber(SLoc) + << " col=" + << GraphPrintSourceManager->getInstantiationColumnNumber(SLoc) + << "\\l"; } if (GraphPrintCheckerState->isImplicitNullDeref(N)) @@ -2827,8 +2829,9 @@ struct VISIBILITY_HIDDEN DOTGraphTraits<GRExprEngine::NodeTy*> : if (SLoc.isFileID()) { Out << "\\lline=" - << GraphPrintSourceManager->getLineNumber(SLoc) << " col=" - << GraphPrintSourceManager->getColumnNumber(SLoc); + << GraphPrintSourceManager->getInstantiationLineNumber(SLoc) + << " col=" + << GraphPrintSourceManager->getInstantiationColumnNumber(SLoc); } if (isa<SwitchStmt>(T)) { |