Skip to content
  1. Nov 13, 2009
    • Anders Carlsson's avatar
      Instead of storing CXXMethodDecls in the vtable builder, store GlobalDecls so... · fb4dda4f
      Anders Carlsson authored
      Instead of storing CXXMethodDecls in the vtable builder, store GlobalDecls so we can represent both the complete and deleting destructors. Also, when encountering a destructor decl, emit entries for both the complete and deleting destructors. Mike, please review.
      
      With this change, FileCheck builds and runs the clang test suite without failures!
      
      llvm-svn: 88663
      fb4dda4f
    • Anders Carlsson's avatar
      Add a special BuildVirtualCall that's going to be used for building calls to... · e828c369
      Anders Carlsson authored
      Add a special BuildVirtualCall that's going to be used for building calls to destructors. This is needed because when compiling:
      
      struct A {
      	virtual ~A();
      };
      
      void f(A* a) {
      	delete a;
      }
      
      A's deleting destructor should be called.
      
      llvm-svn: 87083
      e828c369
    • Anders Carlsson's avatar
      Fix two bugs with temporaries: · 78cfaa9e
      Anders Carlsson authored
      1. For 
      
      A f() {
      	return A();
      }
      
      we were incorrectly calling the A destructor on the returned object.
      
      2. For
      
      void f(A);
      void g() {
      	A a;
      	f(a);
      }
      
      we were incorrectly not calling the copy constructor.
      
      llvm-svn: 87082
      78cfaa9e
  2. Nov 11, 2009
  3. Nov 10, 2009
  4. Nov 09, 2009
    • Eli Friedman's avatar
      Unify the codepaths used to verify base and member initializers for explicitly · d7686ef3
      Eli Friedman authored
      and implicitly defined constructors.  This has a number of benefits:
      
      1. Less code.
      
      2. Explicit and implicit constructors get the same diagnostics.
      
      3. The AST explicitly contains constructor calls from implicit default
      constructors.  This allows handing some cases that previously weren't handled
      correctly in IRGen without any additional code. Specifically, implicit default
      constructors containing calls to constructors with default arguments are now
      handled correctly.
      
      llvm-svn: 86500
      d7686ef3
  5. Nov 06, 2009
  6. Nov 05, 2009
  7. Nov 04, 2009
  8. Nov 03, 2009
  9. Oct 28, 2009
  10. Oct 21, 2009
  11. Oct 16, 2009
  12. Oct 13, 2009
  13. Oct 12, 2009
  14. Oct 11, 2009
  15. Oct 10, 2009
  16. Oct 09, 2009
  17. Oct 07, 2009
Loading