summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/TextDiagnostic.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-02-14 02:46:00 +0000
committerTed Kremenek <kremenek@apple.com>2012-02-14 02:46:00 +0000
commit0964cca5d5874162fe09d566ee03b84a17c2a212 (patch)
tree44f5e0a395ff52a10e7313c4fc8e8349db230c99 /clang/lib/Frontend/TextDiagnostic.cpp
parent3efa357fee22ff293fedb20751cd725580b00766 (diff)
downloadbcm5719-llvm-0964cca5d5874162fe09d566ee03b84a17c2a212.tar.gz
bcm5719-llvm-0964cca5d5874162fe09d566ee03b84a17c2a212.zip
Refactor DiagnosticRenderer and SDiagsRenderer to have some functionality
pulled into DiagnosticNoteRenderer, and common DiagnosticRenderer that assumes that all custom diagnostic messages are notes. Also extend DiagnosticRenderer to work with StoredDiagnostics in preparation for subsequent changes. llvm-svn: 150455
Diffstat (limited to 'clang/lib/Frontend/TextDiagnostic.cpp')
-rw-r--r--clang/lib/Frontend/TextDiagnostic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/TextDiagnostic.cpp b/clang/lib/Frontend/TextDiagnostic.cpp
index 5b8fd5675d7..9f5dcb48380 100644
--- a/clang/lib/Frontend/TextDiagnostic.cpp
+++ b/clang/lib/Frontend/TextDiagnostic.cpp
@@ -339,7 +339,7 @@ TextDiagnostic::emitDiagnosticMessage(SourceLocation Loc,
DiagnosticsEngine::Level Level,
StringRef Message,
ArrayRef<clang::CharSourceRange> Ranges,
- const Diagnostic *Info) {
+ DiagOrStoredDiag D) {
uint64_t StartOfLocationInfo = OS.tell();
// Emit the location of this particular diagnostic.
OpenPOWER on IntegriCloud