From: Anders Carlsson Date: Sun, 28 Nov 2010 17:50:09 +0000 (+0000) Subject: Make the destructor be the 'vtable anchor' of the CGCXXABI class. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1af610f8533b8b4a7b0b176aa8082f5b6dde904c;p=clang 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 --- 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;