summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/constructors.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Output destructors and constructors in a more natural order.Rafael Espindola2013-12-091-16/+12
| | | | | | | | | | | | | | | | With this patch we output the in the order C2 C1 D2 D1 D0 Which means that a destructor or constructor that call another is output after the callee. This is a bit easier to read IHMO and a tiny bit more efficient as we don't put a decl in DeferredDeclsToEmit. llvm-svn: 196784
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-151-11/+11
| | | | | | tests fail. llvm-svn: 188447
* Don't build member initializers for zero-length or incomplete arrays,Douglas Gregor2011-11-021-2/+0
| | | | | | | and don't try to destroy them, either. Fixes <rdar://problem/10228639>. llvm-svn: 143584
* Arrays are permitted to be zero-length in some situations.John McCall2011-07-131-0/+11
| | | | llvm-svn: 135036
* clang side to match the LLVM IR type system rewrite patch.Chris Lattner2011-07-091-2/+2
| | | | llvm-svn: 134831
* Move unnamed_addr after the function arguments on Sabre's request.Rafael Espindola2011-01-251-10/+10
| | | | llvm-svn: 124210
* Add unnamed_addr to constructors and destructors.Rafael Espindola2011-01-111-10/+10
| | | | llvm-svn: 123197
* Account for the VTT argument when making an implicit copy constructor forJohn McCall2010-04-301-0/+12
| | | | | | | | | a class with virtual bases. Just a patch until Sema starts (correctly) doing most of this analysis. Fixes PR 6622. llvm-svn: 102692
* Turn access control on by default in -cc1.John McCall2010-04-091-1/+1
| | | | | | | | Remove -faccess-control from -cc1; add -fno-access-control. Make the driver pass -fno-access-control by default. Update a bunch of tests to be correct under access control. llvm-svn: 100880
* Perform two more constructor/destructor code-size optimizations:John McCall2010-02-231-0/+94
1) emit base destructors as aliases to their unique base class destructors under some careful conditions. This is enabled for the same targets that can support complete-to-base aliases, i.e. not darwin. 2) Emit non-variadic complete constructors for classes with no virtual bases as calls to the base constructor. This is enabled on all targets and in theory can trigger in situations that the alias optimization can't (mostly involving virtual bases, mostly not yet supported). These are bundled together because I didn't think it worthwhile to split them, not because they really need to be. llvm-svn: 96842
OpenPOWER on IntegriCloud