summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-22 00:59:29 +0000
committerChris Lattner <sabre@nondot.org>2008-11-22 00:59:29 +0000
commit427c9c17630a691f69b1ecd77061ac6f6e1764af (patch)
tree2c470a729f50ef3d0aad585704f3ba4cdc86483e /clang/lib/Parse/Parser.cpp
parenta3148f16e4cd5eb33583a80cb12c99c338be1e0c (diff)
downloadbcm5719-llvm-427c9c17630a691f69b1ecd77061ac6f6e1764af.tar.gz
bcm5719-llvm-427c9c17630a691f69b1ecd77061ac6f6e1764af.zip
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. llvm-svn: 59849
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r--clang/lib/Parse/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index 86c29760d47..ae75266e041 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud