| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | fix PR4026: Clang can't codegen __func__ without implicit cast | Chris Lattner | 2009-04-21 | 1 | -6/+9 |
| | | | | | llvm-svn: 69747 | ||||
| * | Make sure to mark the interface as completed when we see an | Daniel Dunbar | 2009-04-21 | 1 | -5/+2 |
| | | | | | | | | | | @implementation that closes a @class delcaration. - I don't know how to make a test case for this, but this strengthens the invariants that hold internally. The functionality change here is the edit to SemaDeclObjC.cpp. llvm-svn: 69728 | ||||
| * | Fix emission of static tentative definitions referenced from other static ↵ | Douglas Gregor | 2009-04-21 | 1 | -9/+11 |
| | | | | | | | functions llvm-svn: 69699 | ||||
| * | More objc2's ivar layout bitmap. No change in functionality. | Fariborz Jahanian | 2009-04-21 | 1 | -5/+26 |
| | | | | | llvm-svn: 69695 | ||||
| * | don't bother emitting a zero byte memset at all. We used to get them | Chris Lattner | 2009-04-21 | 1 | -2/+5 |
| | | | | | | | | | | | | | | | | | | in cases like this: typedef struct { short instance; char name[0]; } ATTR_LIST_ENTRY2; void test() { ATTR_LIST_ENTRY2 X = (ATTR_LIST_ENTRY2) { .instance = 7, }; } While it is safe to emit them, it is pretty silly. llvm-svn: 69687 | ||||
| * | Explictly track tentative definitions within Sema, then hand those | Douglas Gregor | 2009-04-21 | 3 | -25/+20 |
| | | | | | | | | | | | | | | | | tentative definitions off to the ASTConsumer at the end of the translation unit. Eliminate CodeGen's internal tracking of tentative definitions, and instead hook into ASTConsumer::CompleteTentativeDefinition. Also, tweak the definition-deferal logic for C++, where there are no tentative definitions. Fixes <rdar://problem/6808352>, and will make it much easier for precompiled headers to cope with tentative definitions in the future. llvm-svn: 69681 | ||||
| * | Pass and return aggregate types directly to function calls. | Sanjiv Gupta | 2009-04-21 | 1 | -0/+41 |
| | | | | | llvm-svn: 69668 | ||||
| * | use of predefined identifiers like __func__ at global scope warn in sema, | Chris Lattner | 2009-04-21 | 1 | -1/+1 |
| | | | | | | | | but crashed codegen. Fix this to report the name of the llvm function. This fixes rdar://6808051 llvm-svn: 69658 | ||||
| * | Remove unnused variable. | Daniel Dunbar | 2009-04-21 | 1 | -1/+0 |
| | | | | | llvm-svn: 69650 | ||||
| * | Kill ASTContext::[gs]etFieldForDecl, instead we just lookup things | Daniel Dunbar | 2009-04-21 | 6 | -23/+9 |
| | | | | | | | | | when we need them -- which is exactly what some code was already doing! - No intended functionality change. llvm-svn: 69648 | ||||
| * | Remove LateBoundIVars() runtime interface, it is unused. | Daniel Dunbar | 2009-04-21 | 3 | -24/+3 |
| | | | | | llvm-svn: 69641 | ||||
| * | Assert on a few conditions that (I believe) should hold | Daniel Dunbar | 2009-04-21 | 2 | -0/+3 |
| | | | | | | | | w.r.t. ASTContext::[gs]etFieldDecl, and the Field argument to EmitObjCValueForIvar). llvm-svn: 69639 | ||||
| * | ObjC2's Ivar bitmap layout work. No change in functionality. | Fariborz Jahanian | 2009-04-20 | 1 | -17/+29 |
| | | | | | llvm-svn: 69629 | ||||
| * | Move countInheritedIvars to within striking distance of | Daniel Dunbar | 2009-04-20 | 1 | -39/+34 |
| | | | | | | | | | | | | | GetClassSizeInfo Reduce nesting in GetInterfaceDeclStructLayout. Tweak some comments. No functionality change. llvm-svn: 69621 | ||||
| * | the __gnuc_inline__ attribute is actually named __gnu_inline__, | Chris Lattner | 2009-04-20 | 1 | -1/+1 |
| | | | | | | | PR4023 llvm-svn: 69618 | ||||
| * | Inline GetFirstIvarInRecord into sole caller. | Daniel Dunbar | 2009-04-20 | 1 | -28/+9 |
| | | | | | | | - No functionality change. llvm-svn: 69582 | ||||
| * | Set a bit in IMAGE_INFO to indicate that we don't contain any | Daniel Dunbar | 2009-04-20 | 1 | -3/+12 |
| | | | | | | | | | @synthesized ivars for superclasses. - <rdar://problem/6806371> [clang] Mark code without miscompiled @synthesized properties llvm-svn: 69581 | ||||
| * | Lift out GetNamedIvarList. | Daniel Dunbar | 2009-04-20 | 1 | -30/+40 |
| | | | | | | | | | | Drop uses of GetFirstInvarInRecord, instead we lookup the ivars we know are in the record. - This is somewhat less efficient, but I need to detangle this code first... llvm-svn: 69579 | ||||
| * | Don't emit ivar offsets for unnamed bit fields. | Daniel Dunbar | 2009-04-20 | 1 | -5/+8 |
| | | | | | | | Also, added assertion that the field matches what would be looked up. llvm-svn: 69572 | ||||
| * | PR3247: Handle a couple of cases where we weren't emitting VLA sizes (and | Eli Friedman | 2009-04-20 | 2 | -1/+9 |
| | | | | | | | subsequently crashed). llvm-svn: 69567 | ||||
| * | PR3248: Make sure the evaluate the operand of a sizeof when it has a VLA type. | Eli Friedman | 2009-04-20 | 1 | -0/+4 |
| | | | | | | | Adapted from patch by Tim Northover. llvm-svn: 69566 | ||||
| * | Remove non-const form of lookupFieldDeclForIvar. | Daniel Dunbar | 2009-04-20 | 3 | -4/+7 |
| | | | | | llvm-svn: 69563 | ||||
| * | Comment fixes. | Daniel Dunbar | 2009-04-20 | 1 | -6/+6 |
| | | | | | llvm-svn: 69562 | ||||
| * | Lift GetClassSizeInfo out of GenerateClass, add a FIXME. | Daniel Dunbar | 2009-04-19 | 1 | -29/+37 |
| | | | | | | | - No functionality change. llvm-svn: 69561 | ||||
| * | PR3853: Add CodeGen support for __thread. | Eli Friedman | 2009-04-19 | 2 | -11/+6 |
| | | | | | llvm-svn: 69545 | ||||
| * | Silence gcc warning. | Eli Friedman | 2009-04-19 | 1 | -1/+1 |
| | | | | | llvm-svn: 69541 | ||||
| * | silence a warning, it isn't clear what the right answer is here, | Chris Lattner | 2009-04-19 | 1 | -1/+1 |
| | | | | | | | will talk to steve. llvm-svn: 69519 | ||||
| * | silence a warning, I need to talk to Devang about this code. | Chris Lattner | 2009-04-19 | 1 | -1/+1 |
| | | | | | llvm-svn: 69517 | ||||
| * | Fix rdar://6804402 - crash on objc implementations declared with | Chris Lattner | 2009-04-19 | 2 | -10/+23 |
| | | | | | | | | @class but no implementation. This was broken in all 3 runtime impls. llvm-svn: 69512 | ||||
| * | Fix bug in computation of ivar offsets for (adjacent) bitfields. | Daniel Dunbar | 2009-04-19 | 1 | -10/+13 |
| | | | | | | | | | - The confusing IRgen bitfield interface is partly to blame here; fixing the functional error for now, cleanups to the interface to follow. llvm-svn: 69503 | ||||
| * | revert david's patch, which causes a testsuite failure. | Chris Lattner | 2009-04-19 | 1 | -3/+2 |
| | | | | | llvm-svn: 69501 | ||||
| * | Reuse ObjcIvarOffsetVariable instead of duplicating code. | Daniel Dunbar | 2009-04-19 | 1 | -22/+9 |
| | | | | | | | - No functionality change (but added a FIXME). llvm-svn: 69496 | ||||
| * | Remove some unnecessary complexity. | Daniel Dunbar | 2009-04-19 | 1 | -11/+5 |
| | | | | | | | - No functionality change. llvm-svn: 69495 | ||||
| * | "This patch fixes message sends to super in class methods for the GNU ↵ | Chris Lattner | 2009-04-18 | 1 | -2/+3 |
| | | | | | | | | | runtime (currently an instance method lookup is being performed)." Patch by David Chisnall! llvm-svn: 69493 | ||||
| * | Use EmitCallArgs in EmitObjCMessageExpr. | Anders Carlsson | 2009-04-18 | 1 | -4/+1 |
| | | | | | llvm-svn: 69471 | ||||
| * | Make CodeGenFunction::EmitCallArgs a template function that takes a generic ↵ | Anders Carlsson | 2009-04-18 | 2 | -38/+38 |
| | | | | | | | "Type Info" parameter. The type info parameter knows how to iterate over its arguments. llvm-svn: 69469 | ||||
| * | Use getAsPointerType instead of using getCanonicalType directly. | Daniel Dunbar | 2009-04-18 | 1 | -10/+6 |
| | | | | | | | - <rdar://problem/6803995> llvm-svn: 69435 | ||||
| * | Fix a bug found by inspection, class/meta references could be emitted | Daniel Dunbar | 2009-04-18 | 1 | -17/+39 |
| | | | | | | | into the wrong section (they shared the same lookup table). llvm-svn: 69433 | ||||
| * | fix incorrect lowering of __builtin_ia32_shufpd, rdar://6803924 | Chris Lattner | 2009-04-18 | 1 | -1/+2 |
| | | | | | llvm-svn: 69428 | ||||
| * | FunctionDecl::getBody() is getting an ASTContext argument for use in | Douglas Gregor | 2009-04-18 | 3 | -5/+5 |
| | | | | | | | | | lazy PCH deserialization. Propagate that argument wherever it needs to be. No functionality change, except that I've tightened up a few PCH tests in preparation. llvm-svn: 69406 | ||||
| * | fix a crash compiling code with its own definition of objc_assign_weak. | Chris Lattner | 2009-04-17 | 1 | -5/+11 |
| | | | | | | | rdar://6800430 llvm-svn: 69392 | ||||
| * | Use PresumedLoc to record line number in debug info entries. | Devang Patel | 2009-04-17 | 1 | -11/+22 |
| | | | | | llvm-svn: 69389 | ||||
| * | Don't put msgrefs in used globals (in particular, we don't want | Daniel Dunbar | 2009-04-17 | 1 | -1/+0 |
| | | | | | | | no-dead-strip set on them). llvm-svn: 69388 | ||||
| * | Appropriately set file name and directory name in debug info compile units. | Devang Patel | 2009-04-17 | 2 | -27/+31 |
| | | | | | llvm-svn: 69387 | ||||
| * | Fix rdar://6800926 - crash compiling non-fragile _Bool bitfield ivar, | Chris Lattner | 2009-04-17 | 1 | -5/+5 |
| | | | | | | | | the functional change here is changing ConvertType -> ConvertTypeForMem so that we handle i1 fields properly as memory. llvm-svn: 69361 | ||||
| * | tidy some code. | Chris Lattner | 2009-04-17 | 1 | -5/+2 |
| | | | | | llvm-svn: 69360 | ||||
| * | Add support for generating (very basic) C++ destructors. These aren't called ↵ | Anders Carlsson | 2009-04-17 | 5 | -40/+143 |
| | | | | | | | by anything yet. llvm-svn: 69343 | ||||
| * | Attributes on block functions were not being set. | Daniel Dunbar | 2009-04-17 | 4 | -8/+16 |
| | | | | | | | | - <rdar://problem/6800351> clang not producing correct large struct return code for Blocks llvm-svn: 69337 | ||||
| * | Implement basic code generation of constructor calls. We can now compile: | Anders Carlsson | 2009-04-17 | 4 | -0/+71 |
| | | | | | | | | | | | | | struct S { S(int, int); }; void f() { S s(10, 10); } llvm-svn: 69330 | ||||
| * | Add GetAddrOfCXXConstructor and use it. | Anders Carlsson | 2009-04-16 | 2 | -5/+16 |
| | | | | | llvm-svn: 69328 | ||||

