summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiate.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/Sema/SemaTemplateInstantiate.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/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiate.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index 10f9926b3e7..e856e91ffcc 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp
@@ -93,14 +93,6 @@ bool Sema::InstantiatingTemplate::CheckInstantiationDepth(
return true;
}
-/// \brief Post-diagnostic hook for printing the instantiation stack.
-void Sema::PrintInstantiationStackHook(unsigned, void *Cookie) {
- Sema &SemaRef = *static_cast<Sema*>(Cookie);
- SemaRef.PrintInstantiationStack();
- SemaRef.LastTemplateInstantiationErrorContext
- = SemaRef.ActiveTemplateInstantiations.back();
-}
-
/// \brief Prints the current instantiation stack through a series of
/// notes.
void Sema::PrintInstantiationStack() {
OpenPOWER on IntegriCloud