[cfe-commits] r91205 - /cfe/trunk/lib/Frontend/HTMLPrint.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Dec 11 19:36:52 PST 2009
Author: efriedma
Date: Fri Dec 11 21:36:52 2009
New Revision: 91205
URL: http://llvm.org/viewvc/llvm-project?rev=91205&view=rev
Log:
Fix for PR4642: move work in HTMLPrinter out of the destructor.
Modified:
cfe/trunk/lib/Frontend/HTMLPrint.cpp
Modified: cfe/trunk/lib/Frontend/HTMLPrint.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/HTMLPrint.cpp?rev=91205&r1=91204&r2=91205&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/HTMLPrint.cpp (original)
+++ cfe/trunk/lib/Frontend/HTMLPrint.cpp Fri Dec 11 21:36:52 2009
@@ -41,9 +41,9 @@
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 @@
R.setSourceMgr(context.getSourceManager(), context.getLangOptions());
}
-HTMLPrinter::~HTMLPrinter() {
+void HTMLPrinter::HandleTranslationUnit(ASTContext &Ctx) {
if (PP.getDiagnostics().hasErrorOccurred())
return;
More information about the cfe-commits
mailing list