Эх сурвалжийг харах

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
Anders Carlsson 14 жил өмнө
parent
commit
1af610f853

+ 1 - 1
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) {

+ 1 - 3
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;