- Apr 22, 2009
-
-
Daniel Dunbar authored
llvm-svn: 69773
-
Daniel Dunbar authored
llvm-svn: 69772
-
Daniel Dunbar authored
- Superclasses are now always laid out their shadow structure at the first field. - Prior to this, the entire class heirarchy was flattened into a single structure which meant that alignment, padding, and bitfields weren't packed correctly (the ASTRecordLayout was correct however, which meant our debug info didn't coincide with ivar offsets, for example). - This is still very suboptimal, but I believe the ivar layout itself is now at least close to correct. - <rdar://problem/6773388> error: objc[29823]: layout bitmap sliding backwards llvm-svn: 69771
-
- Apr 21, 2009
-
-
Daniel Dunbar authored
@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
-
Douglas Gregor authored
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
-
Daniel Dunbar authored
addRecordToClass. - Among other things, this fixes a crash when applying sizeof to an interface with synthesized ivars, although things still aren't "correct" here. llvm-svn: 69675
-
rdar://6808859Chris Lattner authored
aggregates even though we already accept explicit ones. Easy fix. llvm-svn: 69661
-
Anders Carlsson authored
llvm-svn: 69654
-
Anders Carlsson authored
llvm-svn: 69652
-
Daniel Dunbar authored
when we need them -- which is exactly what some code was already doing! - No intended functionality change. llvm-svn: 69648
-
Daniel Dunbar authored
w.r.t. ASTContext::[gs]etFieldDecl, and the Field argument to EmitObjCValueForIvar). llvm-svn: 69639
-
- Apr 20, 2009
-
-
Steve Naroff authored
Test will be enabled with ObjCInterfaceDecl is added. llvm-svn: 69594
-
Daniel Dunbar authored
llvm-svn: 69578
-
Daniel Dunbar authored
llvm-svn: 69563
-
- Apr 19, 2009
-
-
Chris Lattner authored
llvm-svn: 69497
-
- Apr 18, 2009
-
-
Douglas Gregor authored
"Hello, World!", this takes us from deserializing 6469 statements/expressions down to deserializing 1 statement/expression. It only translated into a 1% improvement on the Carbon-prefixed 403.gcc, but (a) it's the right thing to do, and (b) we expect this to matter more once we lazily deserialize identifiers. llvm-svn: 69407
-
Douglas Gregor authored
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
-
- Apr 17, 2009
-
-
Douglas Gregor authored
1) Accidentally used delete [] on an array of statements that was allocated with ASTContext's allocator 2) Deserialization of names with multiple declarations (e.g., a struct and a function) used the wrong mangling constant, causing it to view declaration IDs as Decl*s. 403.gcc builds and links properly. llvm-svn: 69390
-
Douglas Gregor authored
This completes support for all of C (+ extensions). We can (again) build a PCH file for Carbon.h. llvm-svn: 69385
-
Sebastian Redl authored
Add a few commented lines to the test case that point out things that don't work yet. llvm-svn: 69354
-
Anders Carlsson authored
llvm-svn: 69345
-
Douglas Gregor authored
compound, case, default, if, switch, and break statements. llvm-svn: 69329
-
- Apr 16, 2009
-
-
rdar://problem/6765383Steve Naroff authored
Fix <rdar://problem/6765383> clang-6: clang does not appear to support declaring a static Block 'const'. llvm-svn: 69306
-
Douglas Gregor authored
llvm-svn: 69251
-
Anders Carlsson authored
llvm-svn: 69245
-
Douglas Gregor authored
llvm-svn: 69244
-
Douglas Gregor authored
llvm-svn: 69240
-
- Apr 15, 2009
-
-
Fariborz Jahanian authored
__string/__weak attributes. llvm-svn: 69229
-
Douglas Gregor authored
llvm-svn: 69186
-
Douglas Gregor authored
llvm-svn: 69172
-
Douglas Gregor authored
anonymous structs or unions. Fixes PR3778. llvm-svn: 69153
-
Daniel Dunbar authored
- Strip off extra parens when looking for casts. - Change the location info to point at the cast (instead of the assignment). For example, on int *b; #define a ((void*) b) void f0() { a = 10; } we now emit: /tmp/t.c:4:3: error: assignment to cast is illegal, lvalue casts are not supported a = 10; ^ ~ /tmp/t.c:2:12: note: instantiated from: #define a ((void*) b) ~^~~~~~~~~~ instead of: /tmp/t.c:4:5: error: expression is not assignable a = 10; ~ ^ llvm-svn: 69114
-
Daniel Dunbar authored
extension. llvm-svn: 69100
-
- Apr 14, 2009
-
-
Steve Naroff authored
This fixes <rdar://problem/6782722> XCDataTipsManager.m registers, observes notifications in class methods. The radar above is the result of clang typing 'self' in a class method as 'Class', which results in some spurious warnings (GCC types 'self' in a class method as 'id'). I considered changing the type of 'self' to 'id' (to conform to GCC), however this resulted in *many* test cases breaking. In addition, I really prefer a more strongly typed 'self'. All in all, this is the least obtrusive fix I could find for removing the spurious warnings (though we do loose some valid warnings). llvm-svn: 69041
-
Daniel Dunbar authored
- Exposed quite a few Sema issues and a CodeGen crash. - See FIXMEs in test case, and in SemaDecl.cpp (PR3983). I'm skeptical that __private_extern__ should actually be a storage class value. I think that __private_extern__ basically amounts to extern A __attribute__((visibility("hidden"))) and would be better off handled (a) as that, or (b) with an extra bit in the VarDecl. llvm-svn: 69020
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 69019
-
Steve Naroff authored
llvm-svn: 69007
-
Steve Naroff authored
This was exposed as a result of something else that was recently fixed. llvm-svn: 69004
-
- Apr 13, 2009
-
-
Chris Lattner authored
by making ASTContext::isObjCObjectPointerType accept typedefs of id. llvm-svn: 68931
-
- Apr 11, 2009
-
-
Fariborz Jahanian authored
the attribute set on them. llvm-svn: 68844
-