diff options
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index a5fe551bfe..c6b0a80e02 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -38,6 +38,12 @@ bool Parser::Diag(SourceLocation Loc, unsigned DiagID, return true; } +bool Parser::Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg, + SourceRange Range) { + Diags.Report(PP.getFullLoc(Loc), DiagID, &Msg, 1, &Range,1); + return true; +} + bool Parser::Diag(SourceLocation Loc, unsigned DiagID, const SourceRange &R) { Diags.Report(FullSourceLoc(Loc,PP.getSourceManager()), DiagID, 0, 0, &R, 1); |