summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.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/Lex/Preprocessor.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/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index 3d0b4d0da58..5f8f3517fef 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -117,11 +117,11 @@ Preprocessor::~Preprocessor() {
/// Diag - Forwarding function for diagnostics. This emits a diagnostic at
/// the specified Token's location, translating the token's start
/// position in the current buffer into a SourcePosition object for rendering.
-DiagnosticInfo Preprocessor::Diag(SourceLocation Loc, unsigned DiagID) {
+DiagnosticBuilder Preprocessor::Diag(SourceLocation Loc, unsigned DiagID) {
return Diags.Report(getFullLoc(Loc), DiagID);
}
-DiagnosticInfo Preprocessor::Diag(const Token &Tok, unsigned DiagID) {
+DiagnosticBuilder Preprocessor::Diag(const Token &Tok, unsigned DiagID) {
return Diags.Report(getFullLoc(Tok.getLocation()), DiagID);
}
OpenPOWER on IntegriCloud