]> granicus.if.org Git - clang/commitdiff
Make the destructor be the 'vtable anchor' of the CGCXXABI class.
authorAnders Carlsson <andersca@mac.com>
Sun, 28 Nov 2010 17:50:09 +0000 (17:50 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 28 Nov 2010 17:50:09 +0000 (17:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120251 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCXXABI.cpp
lib/CodeGen/CGCXXABI.h

index 21fb732afcf03aea92e3d17f15c86acd9fb7a027..627df43a28ba2bed8085cf7182b18533d8f41814 100644 (file)
@@ -17,7 +17,7 @@
 using namespace clang;
 using namespace CodeGen;
 
-void CGCXXABI::_anchor() {}
+CGCXXABI::~CGCXXABI() { }
 
 static void ErrorUnsupportedABI(CodeGenFunction &CGF,
                                 llvm::StringRef S) {
index 0fca02dac0c99d70251c5e7233735f1da7c65c59..56c4ea98ae42b405c07ff698d7f0d881636948b7 100644 (file)
@@ -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;