- Nov 15, 2007
-
-
Evan Cheng authored
llvm-svn: 44166
-
Nate Begeman authored
llvm-svn: 44164
-
Nick Lewycky authored
is disabled in the sense that it will refuse to create one from a UDiv instruction, until the code is better tested. llvm-svn: 44163
-
Chris Lattner authored
Thanks to him for his detailed analysis of the problem. llvm-svn: 44162
-
Chris Lattner authored
Cédric Venet. llvm-svn: 44161
-
Nate Begeman authored
llvm-svn: 44160
-
Chris Lattner authored
This fixes code like "if((bool)x) {}" for example. Patch by Nate Begeman. llvm-svn: 44159
-
Owen Anderson authored
llvm-svn: 44158
-
Chris Lattner authored
llvm-svn: 44157
-
Steve Naroff authored
- Implement ivar rewrite (patch by Fariborz). - RewriteMessageExpr()...make implicit casts explicit with synthesizing call (removing warnings when calling objc_msgSend()). llvm-svn: 44156
-
Bill Wendling authored
llvm-svn: 44154
-
Bill Wendling authored
llvm-svn: 44153
-
Ted Kremenek authored
deserialize objects if BatchReadOwnedPtrs was called more than once in the same call chain then the second call would overwrite the SerializedPtrIDs being used by the first call. Solved this problem by making the vector that holds the pointer IDs local to a function call. Now BatchReadOwnedPtrs is reentrant. llvm-svn: 44152
-
Steve Naroff authored
Refinement to previous commit. Always cast the first argument to "id"...no need to special case self. llvm-svn: 44149
-
Steve Naroff authored
Cast implicit "self" argument to "id". This removes all warnings associated with implicit references to self. It doesn't yet deal withexplicit references to self... llvm-svn: 44148
-
Ted Kremenek authored
"default constructed" an APSInt. Fixed another bug in the same method where we did not allow the NextDeclarator to be NULL. llvm-svn: 44147
-
Ted Kremenek authored
qualifiers as part of the pointer address. llvm-svn: 44146
-
Steve Naroff authored
Always generate a typedef for @class. The typedef removal logic that I'm removing only made sense when we were operating on preprocess files without typedef guards. Now that we have guards, it is incorrect to ever remove one (since it may increase the likelihood that the rewritten header can't be included stand alone). llvm-svn: 44145
-
- Nov 14, 2007
-
-
Chris Lattner authored
between an @ and a p, just skip whitespace. llvm-svn: 44144
-
Ted Kremenek authored
backpatching. This original was available, but then we removed it. It is back again to help with deserialization of FieldDecls. Because FieldDecls are currently owned by RecordDecls, which are owned by a TagType, the type of the FieldDecl may not be deserialized prior to deserializing the FieldDecl. Thus backpatching solves the problem of constructing a FieldDecl that references a type that has not yet been deserialized. Simplified serialization of TagType to not require passing in the SerializedPtrID. Registration of the materialized type object is done after the CreateImpl method returns (as with other types). llvm-svn: 44143
-
Fariborz Jahanian authored
llvm-svn: 44142
-
Duncan Sands authored
llvm-svn: 44139
-
Ted Kremenek authored
llvm-svn: 44137
-
Ted Kremenek authored
llvm-svn: 44134
-
Ted Kremenek authored
llvm-svn: 44133
-
Duncan Sands authored
llvm-svn: 44132
-
Ted Kremenek authored
llvm-svn: 44131
-
Ted Kremenek authored
Reordered serialization methods for FunctionTypeProto and FunctionTypeNoProto to be alphabetical by serialized type name. llvm-svn: 44130
-
Steve Naroff authored
Fairly major surgery to RewriteTest::SynthesizeObjcInternalStruct(). This allows us to handle funky stuff like... #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 @interface NSLayoutManager : NSObject <NSCoding, NSGlyphStorage> { #else /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 */ @interface NSLayoutManager : NSObject <NSCoding> { #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 */ ...which now rewrites to... #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 #ifndef _REWRITER_typedef_NSLayoutManager #define _REWRITER_typedef_NSLayoutManager typedef struct objc_object NSLayoutManager; #endif struct NSLayoutManager { struct NSObject _NSObject; #else /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 */ // @interface NSLayoutManager : NSObject <NSCoding> { #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 */ llvm-svn: 44129
-
Evan Cheng authored
llvm-svn: 44128
-
Ted Kremenek authored
llvm-svn: 44127
-
Ted Kremenek authored
llvm-svn: 44126
-
Ted Kremenek authored
block separate from ASTContext. This block is serialized out AFTER writing out ASTContext, but deserialized BEFORE reading in ASTContext. This permits the optimization of the serialization of the IdentifierTable where we only write out identifiers that are used. This was needed because TagDecls are owned by Types, and TagDecls contain identifiers. Thus types need to be written out first to register with the serializer any identifiers they refer to (and hence need to be serialized out with IdentifierTable). llvm-svn: 44125
-
Ted Kremenek authored
the deserializer. Fixed assertion when "stream jumping" in the deserializer to properly function when we have reached the end of the stream. llvm-svn: 44124
-
Fariborz Jahanian authored
llvm-svn: 44123
-
Chris Lattner authored
llvm-svn: 44120
-
Steve Naroff authored
Fix yesterday's regression with rewriting @optional/@required. llvm-svn: 44119
-
Steve Naroff authored
Rewrite methods that span multiple lines. llvm-svn: 44118
-
Steve Naroff authored
Allow properties within a protocol. The case below was asserting...now it works fine. @protocol CAMediaTiming @property int beginTime; @end Comments in the code tell the rest of the story... llvm-svn: 44117
-
Duncan Sands authored
llvm-svn: 44116
-