diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-22 00:59:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-22 00:59:29 +0000 |
commit | 3cbfe2c4159e0a219ae660d50625c013aa4afbd0 (patch) | |
tree | fb00316d7bab059a54087dd5687570f76b63785b /lib/Parse/Parser.cpp | |
parent | 3296ccea50e7b6649638bd666181e0825145e898 (diff) |
Split the DiagnosticInfo class into two disjoint classes:
one for building up the diagnostic that is in flight (DiagnosticBuilder)
and one for pulling structured information out of the diagnostic when
formatting and presenting it.
There is no functionality change with this patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 86c29760d4..ae75266e04 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -41,11 +41,11 @@ Parser::Parser(Preprocessor &pp, Action &actions) Action::~Action() {} -DiagnosticInfo Parser::Diag(SourceLocation Loc, unsigned DiagID) { +DiagnosticBuilder Parser::Diag(SourceLocation Loc, unsigned DiagID) { return Diags.Report(FullSourceLoc(Loc,PP.getSourceManager()), DiagID); } -DiagnosticInfo Parser::Diag(const Token &Tok, unsigned DiagID) { +DiagnosticBuilder Parser::Diag(const Token &Tok, unsigned DiagID) { return Diag(Tok.getLocation(), DiagID); } |