[cfe-commits] r120251 - in /cfe/trunk/lib/CodeGen: CGCXXABI.cpp CGCXXABI.h

Anders Carlsson andersca at mac.com
Sun Nov 28 09:50:09 PST 2010


Author: andersca
Date: Sun Nov 28 11:50:09 2010
New Revision: 120251

URL: http://llvm.org/viewvc/llvm-project?rev=120251&view=rev
Log:
Make the destructor be the 'vtable anchor' of the CGCXXABI class.

Modified:
    cfe/trunk/lib/CodeGen/CGCXXABI.cpp
    cfe/trunk/lib/CodeGen/CGCXXABI.h

Modified: cfe/trunk/lib/CodeGen/CGCXXABI.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXXABI.cpp?rev=120251&r1=120250&r2=120251&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXXABI.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXXABI.cpp Sun Nov 28 11:50:09 2010
@@ -17,7 +17,7 @@
 using namespace clang;
 using namespace CodeGen;
 
-void CGCXXABI::_anchor() {}
+CGCXXABI::~CGCXXABI() { }
 
 static void ErrorUnsupportedABI(CodeGenFunction &CGF,
                                 llvm::StringRef S) {

Modified: cfe/trunk/lib/CodeGen/CGCXXABI.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXXABI.h?rev=120251&r1=120250&r2=120251&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXXABI.h (original)
+++ cfe/trunk/lib/CodeGen/CGCXXABI.h Sun Nov 28 11:50:09 2010
@@ -69,11 +69,9 @@
 
   ASTContext &getContext() const { return CGM.getContext(); }
 
-  virtual void _anchor();
-
 public:
 
-  virtual ~CGCXXABI() {}
+  virtual ~CGCXXABI();
 
   /// Gets the mangle context.
   virtual MangleContext &getMangleContext() = 0;





More information about the cfe-commits mailing list