aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-11-28 17:50:09 +0000
committerAnders Carlsson <andersca@mac.com>2010-11-28 17:50:09 +0000
commit1af610f8533b8b4a7b0b176aa8082f5b6dde904c (patch)
treef413bd349cd54511c69b5fcde7d61b6347e81cfe
parentee7cde2f391cc7c533c919848da09db715cd0a93 (diff)
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
-rw-r--r--lib/CodeGen/CGCXXABI.cpp2
-rw-r--r--lib/CodeGen/CGCXXABI.h4
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;