diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-20 22:48:49 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-20 22:48:49 +0000 |
commit | da17bd34e7b9c3c090131e84ec607f7426a21f2a (patch) | |
tree | 1ad0452fd718cd23bef92fec2b57cd6518fa96f6 /clang/lib/Sema/SemaTemplateInstantiate.cpp | |
parent | 7117a916f5784b0d06ff863b09a2bf41560c6096 (diff) | |
download | bcm5719-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.cpp | 8 |
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() { |