diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-16 23:06:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-16 23:06:35 +0000 |
commit | 59ddeabc4c0aa2fdeef5a9183e8af69db07b5e74 (patch) | |
tree | ca41270c8cfe57821a54eafe6ef409c57229a961 /lib/Driver/TextDiagnosticPrinter.cpp | |
parent | a50bd54164393ca3cd08016e7099bdeb531b5014 (diff) |
eliminate FullSourceLoc::getLocation() now that FullSourceLoc
*is* the location. This eliminates some weird X.getLocation().getLocation()'s.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/TextDiagnosticPrinter.cpp')
-rw-r--r-- | lib/Driver/TextDiagnosticPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/TextDiagnosticPrinter.cpp b/lib/Driver/TextDiagnosticPrinter.cpp index 1f98ef9190..8523723278 100644 --- a/lib/Driver/TextDiagnosticPrinter.cpp +++ b/lib/Driver/TextDiagnosticPrinter.cpp @@ -105,7 +105,7 @@ void TextDiagnosticPrinter::HandleDiagnostic(Diagnostic::Level Level, if (Pos.isValid()) { FullSourceLoc LPos = Pos.getInstantiationLoc(); LineNo = LPos.getLineNumber(); - FileID = LPos.getLocation().getFileID(); + FileID = LPos.getFileID(); // First, if this diagnostic is not in the main file, print out the // "included from" lines. |