diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-12-12 22:39:36 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-12-12 22:39:36 +0000 |
commit | 9c728dc4d8da89c73fcae74c9e72d7a83ffd7b6d (patch) | |
tree | e89a3acd2ddb4a993e1d6bac53c05628b24f4f2b /Parse/Parser.cpp | |
parent | 5e71124dabe8017f17ce8996e4161a202694e3e6 (diff) |
TargetInfo no longer includes a reference to SourceManager.
Moved all clients of Diagnostics to use FullSourceLoc instead of SourceLocation.
Added many utility methods to FullSourceLoc to provide shorthand for:
FullLoc.getManager().someMethod(FullLoc.getLocation());
instead we have:
FullLoc.someMethod();
Modified TextDiagnostics (and related classes) to use this short-hand.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Parse/Parser.cpp')
-rw-r--r-- | Parse/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parse/Parser.cpp b/Parse/Parser.cpp index f2f331ed69..732311d6c2 100644 --- a/Parse/Parser.cpp +++ b/Parse/Parser.cpp @@ -31,7 +31,7 @@ Action::~Action() {} void Parser::Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg) { - Diags.Report(Loc, DiagID, PP.getSourceManager(), &Msg, 1); + Diags.Report(FullSourceLoc(Loc,PP.getSourceManager()), DiagID, &Msg, 1); } /// MatchRHSPunctuation - For punctuation with a LHS and RHS (e.g. '['/']'), |