summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-12-12 03:36:52 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-12-12 03:36:52 +0000
commit3950e8c4116220d5093ec85a571f5afac8c89665 (patch)
tree33ff8cde4f08a20f1cc6e81fa22739230c605757 /clang/lib
parent60659a8249116a6424c6456e1296a15b3e130489 (diff)
downloadbcm5719-llvm-3950e8c4116220d5093ec85a571f5afac8c89665.tar.gz
bcm5719-llvm-3950e8c4116220d5093ec85a571f5afac8c89665.zip
Fix for PR4642: move work in HTMLPrinter out of the destructor.
llvm-svn: 91205
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Frontend/HTMLPrint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/HTMLPrint.cpp b/clang/lib/Frontend/HTMLPrint.cpp
index 75e6184572e..9ea8cb3feee 100644
--- a/clang/lib/Frontend/HTMLPrint.cpp
+++ b/clang/lib/Frontend/HTMLPrint.cpp
@@ -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;
OpenPOWER on IntegriCloud