aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/TextDiagnosticPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-19 07:46:45 +0000
committerChris Lattner <sabre@nondot.org>2009-01-19 07:46:45 +0000
commita11d61793341fea195c29a0dab3fbd74f2b39a8c (patch)
tree8cff5248e13216b898f92723678d94b9a0ff78d3 /lib/Driver/TextDiagnosticPrinter.cpp
parent9ee7d456b427e002f7fe1844b64bec8055c8db52 (diff)
Rename SourceManager::getCanonicalFileID -> getFileID. There is
no longer such thing as a non-canonical FileID. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/TextDiagnosticPrinter.cpp')
-rw-r--r--lib/Driver/TextDiagnosticPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Driver/TextDiagnosticPrinter.cpp b/lib/Driver/TextDiagnosticPrinter.cpp
index 4080b748ad..71a5e40107 100644
--- a/lib/Driver/TextDiagnosticPrinter.cpp
+++ b/lib/Driver/TextDiagnosticPrinter.cpp
@@ -48,13 +48,13 @@ void TextDiagnosticPrinter::HighlightRange(const SourceRange &R,
SourceMgr.getInstantiationLoc(R.getBegin());
unsigned StartLineNo = SourceMgr.getLineNumber(InstantiationStart);
if (StartLineNo > LineNo ||
- SourceMgr.getCanonicalFileID(InstantiationStart) != FID)
+ SourceMgr.getFileID(InstantiationStart) != FID)
return; // No intersection.
SourceLocation InstantiationEnd = SourceMgr.getInstantiationLoc(R.getEnd());
unsigned EndLineNo = SourceMgr.getLineNumber(InstantiationEnd);
if (EndLineNo < LineNo ||
- SourceMgr.getCanonicalFileID(InstantiationEnd) != FID)
+ SourceMgr.getFileID(InstantiationEnd) != FID)
return; // No intersection.
// Compute the column number of the start.