diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:36:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:36:28 +0000 |
commit | f7cf85b330bedd2877e1371fb0a83e99751ae162 (patch) | |
tree | 6674dd8f06d3c395ab61ad9770934c49572e200c /lib/Driver/PlistDiagnostics.cpp | |
parent | 88054dee0402e4d3c1f64e6b697acc47195c0d72 (diff) |
more SourceLocation lexicon change: instead of referring to the
"logical" location, refer to the "instantiation" location.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62316 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/PlistDiagnostics.cpp')
-rw-r--r-- | lib/Driver/PlistDiagnostics.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Driver/PlistDiagnostics.cpp b/lib/Driver/PlistDiagnostics.cpp index b9e35aa815..7719930125 100644 --- a/lib/Driver/PlistDiagnostics.cpp +++ b/lib/Driver/PlistDiagnostics.cpp @@ -55,7 +55,7 @@ static void AddFID(FIDMap& FIDs, llvm::SmallVectorImpl<unsigned>& V, SourceManager& SM, SourceLocation L) { - unsigned fid = SM.getCanonicalFileID(SM.getLogicalLoc(L)); + unsigned fid = SM.getCanonicalFileID(SM.getInstantiationLoc(L)); FIDMap::iterator I = FIDs.find(fid); if (I != FIDs.end()) return; FIDs[fid] = V.size(); @@ -64,8 +64,7 @@ static void AddFID(FIDMap& FIDs, static unsigned GetFID(const FIDMap& FIDs, SourceManager& SM, SourceLocation L) { - - unsigned fid = SM.getCanonicalFileID(SM.getLogicalLoc(L)); + unsigned fid = SM.getCanonicalFileID(SM.getInstantiationLoc(L)); FIDMap::const_iterator I = FIDs.find(fid); assert (I != FIDs.end()); return I->second; @@ -82,9 +81,9 @@ static void EmitLocation(llvm::raw_ostream& o, SourceManager& SM, Indent(o, indent) << "<dict>\n"; Indent(o, indent) << " <key>line</key><integer>" - << SM.getLogicalLineNumber(L) << "</integer>\n"; + << SM.getInstantiationLineNumber(L) << "</integer>\n"; Indent(o, indent) << " <key>col</key><integer>" - << SM.getLogicalColumnNumber(L) << "</integer>\n"; + << SM.getInstantiationColumnNumber(L) << "</integer>\n"; Indent(o, indent) << " <key>file</key><integer>" << GetFID(FM, SM, L) << "</integer>\n"; Indent(o, indent) << "</dict>\n"; |