diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-18 07:50:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-18 07:50:21 +0000 |
commit | ef708fd4abccf4d21b1f82ab2ab62f6ae7cc1265 (patch) | |
tree | 37e17902a9dc0656c78649d1c409dd46c7fa3203 /lib/Parse/Parser.cpp | |
parent | 1ab3b96de160e4fbffec2a776e284a48a3bb543d (diff) |
remove the last couple obsolete forms of Parser::Diag.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index d0d1871829..168e2f556f 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -49,18 +49,6 @@ DiagnosticInfo Parser::Diag(const Token &Tok, unsigned DiagID) { return Diag(Tok.getLocation(), DiagID); } -bool Parser::Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg, - const SourceRange& Range) { - Diags.Report(PP.getFullLoc(Loc), DiagID) << Msg << Range; - return true; -} - -bool Parser::Diag(SourceLocation Loc, unsigned DiagID, const SourceRange &R) { - Diags.Report(FullSourceLoc(Loc,PP.getSourceManager()), DiagID) << R; - return true; -} - - /// MatchRHSPunctuation - For punctuation with a LHS and RHS (e.g. '['/']'), /// this helper function matches and consumes the specified RHS token if /// present. If not present, it emits the specified diagnostic indicating |