summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCXX.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reflow some comments.Mike Stump2009-05-161-0/+2
| | | | llvm-svn: 71937
* push GlobalDecl through enough of the CodeGenModule interfacesChris Lattner2009-05-121-4/+5
| | | | | | | | | to allow us to support generation of deferred ctors/dtors. It looks like codegen isn't emitting a call to the dtor in member-functions.cpp:test2, but when it does, its body should get emitted. llvm-svn: 71594
* Factor code that's common to EmitCXXMemberCallExpr and ↵Anders Carlsson2009-05-111-27/+34
| | | | | | EmitCXXConstructorCall out into a EmitCXXMemberCall function. llvm-svn: 71514
* Refactor global decls to hold either a regular Decl or a CXXConstructorDecl ↵Anders Carlsson2009-05-051-2/+2
| | | | | | + ctor type or a CXXDestructorDecl + dtor type. llvm-svn: 70962
* Make codegen for constructors work again.Anders Carlsson2009-05-031-14/+2
| | | | llvm-svn: 70785
* We can now call member functions where the base is a pointer.Anders Carlsson2009-05-011-4/+1
| | | | llvm-svn: 70579
* Add support for generating (very basic) C++ destructors. These aren't called ↵Anders Carlsson2009-04-171-26/+65
| | | | | | by anything yet. llvm-svn: 69343
* Implement basic code generation of constructor calls. We can now compile:Anders Carlsson2009-04-171-0/+45
| | | | | | | | | | | | struct S { S(int, int); }; void f() { S s(10, 10); } llvm-svn: 69330
* Add GetAddrOfCXXConstructor and use it.Anders Carlsson2009-04-161-5/+11
| | | | llvm-svn: 69328
* Actually generate code for the simple constructors we know we can generate ↵Anders Carlsson2009-04-151-1/+22
| | | | | | code for. llvm-svn: 69222
* Start attempting to generate code for C++ ctors.Anders Carlsson2009-04-151-1/+32
| | | | llvm-svn: 69168
* Support code generation of 'this' exprsAnders Carlsson2009-04-141-0/+11
| | | | llvm-svn: 69050
* Use the new guard variable mangling function and get rid of the old code.Anders Carlsson2009-04-131-65/+6
| | | | llvm-svn: 68971
* Use the new EmitCallArgs function. No indented functionality change.Anders Carlsson2009-04-081-3/+1
| | | | llvm-svn: 68652
* We weren't generating correct code for calls to variadic member functions.Anders Carlsson2009-04-081-6/+5
| | | | llvm-svn: 68635
* Simplify C++ member function calls.Anders Carlsson2009-04-061-5/+4
| | | | llvm-svn: 68451
* Add support for calling C++ member functions.Anders Carlsson2009-04-031-0/+41
| | | | llvm-svn: 68412
* Pull COdeGenFunction::CreateStaticBlockVarDecl (just for creating theDaniel Dunbar2009-02-251-19/+9
| | | | | | | | global variable) out of GenerateStaticBlockVarDecl. - No intended functionality change. - Prep for some mild cleanups and PR3662. llvm-svn: 65466
* Provide a new kind of iterator, the specific_decl_iterator, thatDouglas Gregor2009-01-091-1/+1
| | | | | | | | | filters the decls seen by decl_iterator with two criteria: the dynamic type of the declaration and a run-time predicate described by a member function. This simplifies EnumDecl, RecordDecl, and ObjCContainerDecl considerably. It has no measurable performance impact. llvm-svn: 61994
* Warning fixes to operator precedence warnings.Eli Friedman2008-12-161-1/+1
| | | | | | | Someone should double-check that I didn't somehow break ObjC serialization; I think the change there actually changes the semantics. llvm-svn: 61098
* Rename Selector::getName() to Selector::getAsString(), and addChris Lattner2008-11-241-8/+5
| | | | | | | | | | | | | a new NamedDecl::getAsString() method. Change uses of Selector::getName() to just pass in a Selector where possible (e.g. to diagnostics) instead of going through an std::string. This also adds new formatters for objcinstance and objcclass as described in the dox. llvm-svn: 59933
* Normalize many BasicBlock names.Daniel Dunbar2008-11-131-1/+1
| | | | | | | | | | - Use dotted notation for blocks related to a particular statement type. - Use .end for landing pads. No functionality change in NDEBUG mode. :) llvm-svn: 59210
* Centralize basic block creation in CodeGenFunction::createBasicBlock.Daniel Dunbar2008-11-111-2/+2
| | | | | | - No functionality change. llvm-svn: 59017
* Handle static initializers in Objective-C++ methods.Anders Carlsson2008-08-231-2/+16
| | | | llvm-svn: 55250
* Add preliminary (and probably broken) codegen support for C++ static ↵Anders Carlsson2008-08-221-0/+136
initializers. llvm-svn: 55180
OpenPOWER on IntegriCloud