summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Diagnostic.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-03-20 22:48:49 +0000
committerDouglas Gregor <dgregor@apple.com>2009-03-20 22:48:49 +0000
commitda17bd34e7b9c3c090131e84ec607f7426a21f2a (patch)
tree1ad0452fd718cd23bef92fec2b57cd6518fa96f6 /clang/lib/Basic/Diagnostic.cpp
parent7117a916f5784b0d06ff863b09a2bf41560c6096 (diff)
downloadbcm5719-llvm-da17bd34e7b9c3c090131e84ec607f7426a21f2a.tar.gz
bcm5719-llvm-da17bd34e7b9c3c090131e84ec607f7426a21f2a.zip
Eliminate post-diagnostic hooks. Instead, implement a Sema-specific
variant of DiagnosticBuilder that emits the template instantiation backtrace when needed. llvm-svn: 67413
Diffstat (limited to 'clang/lib/Basic/Diagnostic.cpp')
-rw-r--r--clang/lib/Basic/Diagnostic.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp
index 97952a04f23..8c393c525eb 100644
--- a/clang/lib/Basic/Diagnostic.cpp
+++ b/clang/lib/Basic/Diagnostic.cpp
@@ -221,8 +221,6 @@ Diagnostic::Diagnostic(DiagnosticClient *client) : Client(client) {
ArgToStringFn = DummyArgToStringFn;
ArgToStringCookie = 0;
-
- InPostDiagnosticHook = false;
}
Diagnostic::~Diagnostic() {
@@ -411,15 +409,7 @@ void Diagnostic::ProcessDiag() {
Client->HandleDiagnostic(DiagLevel, Info);
if (Client->IncludeInDiagnosticCounts()) ++NumDiagnostics;
- // Invoke any post-diagnostic hooks.
- unsigned LastDiag = CurDiagID;
CurDiagID = ~0U;
-
- InPostDiagnosticHook = true;
- for (unsigned Hook = 0; Hook < NumPostDiagnosticHooks; ++Hook)
- PostDiagnosticHooks[Hook].Hook(LastDiag,
- PostDiagnosticHooks[Hook].Cookie);
- InPostDiagnosticHook = false;
}
OpenPOWER on IntegriCloud