]> granicus.if.org Git - clang/commitdiff
Fix for PR4642: move work in HTMLPrinter out of the destructor.
authorEli Friedman <eli.friedman@gmail.com>
Sat, 12 Dec 2009 03:36:52 +0000 (03:36 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 12 Dec 2009 03:36:52 +0000 (03:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91205 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/HTMLPrint.cpp

index 75e6184572e50286725833de6ad3585d8002ee7c..9ea8cb3feee6c01a7269658d531803072fbff219 100644 (file)
@@ -41,9 +41,9 @@ namespace {
                 bool _SyntaxHighlight, bool _HighlightMacros)
       : Out(OS), PP(pp), SyntaxHighlight(_SyntaxHighlight),
         HighlightMacros(_HighlightMacros) {}
-    virtual ~HTMLPrinter();
 
     void Initialize(ASTContext &context);
+    void HandleTranslationUnit(ASTContext &Ctx);
   };
 }
 
@@ -58,7 +58,7 @@ void HTMLPrinter::Initialize(ASTContext &context) {
   R.setSourceMgr(context.getSourceManager(), context.getLangOptions());
 }
 
-HTMLPrinter::~HTMLPrinter() {
+void HTMLPrinter::HandleTranslationUnit(ASTContext &Ctx) {
   if (PP.getDiagnostics().hasErrorOccurred())
     return;