- Nov 15, 2007
-
-
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
-
Duncan Sands authored
the fix from 4.2. llvm-svn: 44115
-
Anton Korobeynikov authored
llvm-svn: 44111
-
Anton Korobeynikov authored
llvm-svn: 44110
-
Anton Korobeynikov authored
llvm-svn: 44109
-
Anton Korobeynikov authored
to all targets uses GOT-relative offsets for PIC (Alpha?) llvm-svn: 44108
-
Duncan Sands authored
in favour of teaching CCAssignToStack that size 0 and/or align 0 means to use the ABI values. This seems a neater solution. It is safe since no legal value type has size 0. llvm-svn: 44107
-
Ted Kremenek authored
have an owning pointer to the referred TagDecl. This should hopefully fix a bug where TagDecls (including decls from structs, etc.) were not serialized. llvm-svn: 44106
-
Ted Kremenek authored
BatchReadOwnedPtrs. llvm-svn: 44105
-
Evan Cheng authored
MachineOperand auxInfo. Previous clunky implementation uses an external map to track sub-register uses. That works because register allocator uses a new virtual register for each spilled use. With interval splitting (coming soon), we may have multiple uses of the same register some of which are of using different sub-registers from others. It's too fragile to constantly update the information. llvm-svn: 44104
-
Duncan Sands authored
from llvm-gcc-4.2 to 4.0. llvm-svn: 44103
-
Chris Lattner authored
llvm-svn: 44102
-
Nick Lewycky authored
from a file containing Function/BasicBlock pairings. This is not safe against anonymous or abnormally-named Funcs or BBs. Make bugpoint use this interface to pass the BBs list to the child bugpoint. llvm-svn: 44101
-