From 1af610f8533b8b4a7b0b176aa8082f5b6dde904c Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 28 Nov 2010 17:50:09 +0000 Subject: [PATCH] Make the destructor be the 'vtable anchor' of the CGCXXABI class. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120251 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGCXXABI.cpp | 2 +- lib/CodeGen/CGCXXABI.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/CGCXXABI.cpp b/lib/CodeGen/CGCXXABI.cpp index 21fb732afc..627df43a28 100644 --- a/lib/CodeGen/CGCXXABI.cpp +++ b/lib/CodeGen/CGCXXABI.cpp @@ -17,7 +17,7 @@ using namespace clang; using namespace CodeGen; -void CGCXXABI::_anchor() {} +CGCXXABI::~CGCXXABI() { } static void ErrorUnsupportedABI(CodeGenFunction &CGF, llvm::StringRef S) { diff --git a/lib/CodeGen/CGCXXABI.h b/lib/CodeGen/CGCXXABI.h index 0fca02dac0..56c4ea98ae 100644 --- a/lib/CodeGen/CGCXXABI.h +++ b/lib/CodeGen/CGCXXABI.h @@ -69,11 +69,9 @@ protected: ASTContext &getContext() const { return CGM.getContext(); } - virtual void _anchor(); - public: - virtual ~CGCXXABI() {} + virtual ~CGCXXABI(); /// Gets the mangle context. virtual MangleContext &getMangleContext() = 0; -- 2.40.0