- Nov 20, 2007
-
-
Ted Kremenek authored
"block-expressions" when visiting arbitrary expressions (via calls to "Visit()"). This results in a refactoring where a dataflow analysis no longer needs to always special case when handling block-expressions versus non-block expressions. Updated LiveVariables and UninitializedValues to conform to the slightly altered interface of these visitor classes. Thanks to Nuno Lopes for providing a test case that illustrated some fundamental problems in the current design of the CFGXXXStmtVisitor classes and how they were used. llvm-svn: 44246
-
- Nov 19, 2007
-
-
Ted Kremenek authored
and ImmutableSet classes in the main LLVM libraries. llvm-svn: 44237
-
Ted Kremenek authored
for correct propagation/update of liveness information within subexpressions of Block-Level expressions. Test case provided by Nuno Lopes. llvm-svn: 44225
-
Ted Kremenek authored
state that occurred in subexpressions of Block-Level expressions. Bug and fix provided by Nuno Lopes. llvm-svn: 44224
-
Anders Carlsson authored
llvm-svn: 44222
-
- Nov 18, 2007
-
-
Ted Kremenek authored
llvm-svn: 44221
-
Ted Kremenek authored
the StmtIterator referring to the initializers of a chain of Decls was equal to the "end" iterator. The particular bug manifested when an iterator was created on a chain of decls with no initializers. Thanks to Nuno Lopes for reporting this bug and providing a patch. llvm-svn: 44220
-
- Nov 17, 2007
-
-
Steve Naroff authored
Now that we are passing back "free standing decls", make sure -ast-dump works like -ast-print. Also added a cast to be safe... llvm-svn: 44209
-
Steve Naroff authored
Make sure Sema::ParsedFreeStandingDeclSpec() returns a decl representing the type. Adding basic printing to StmtPrinter::PrintRawDecl(). llvm-svn: 44208
-
- Nov 16, 2007
-
-
Ted Kremenek authored
own the decl they reference if it is a FunctionDecl. Note that his ownership property is still considered a hack, and should be fixed. llvm-svn: 44192
-
Ted Kremenek authored
query for the number of parameters for FunctionDecls that had type FunctionTypeNoProto. llvm-svn: 44191
-
Chris Lattner authored
This fixes a bug reported by Seo Sanghyeon. This was meant to be committed yesterday, but the commit failed. doh. llvm-svn: 44190
-
- Nov 15, 2007
-
-
Chris Lattner authored
llvm-svn: 44180
-
Chris Lattner authored
llvm-svn: 44179
-
Chris Lattner authored
llvm-svn: 44178
-
Ted Kremenek authored
Some FunctionDecls do not appear at the top-level or are owned by a DeclStmt. In calls to implicitly defined functions, a FunctionDecl is created, but only the DeclRefExprs reference them. Since an implicitly defined function may be called multiple times, there is no clear ownership model for such objects. Temporary solution: when serializing out DeclRefExprs, emit an ownership bit for the Decl. This bit is determined by querying the serializer to see if the Decl has already been serialized. If it hasn't, emit the Decl as an owned pointer. I repeat: this is a hack. This should be fixed. llvm-svn: 44176
-
Ted Kremenek authored
Added missing deserialization case in Stmt::Create() switch statement. llvm-svn: 44175
-
Steve Naroff authored
No need to forward declare definition of objc_super... llvm-svn: 44173
-
Steve Naroff authored
Finish up variadic methods/messages. llvm-svn: 44172
-
Steve Naroff authored
Implement support for variadic methods (work in progress). llvm-svn: 44171
-
Steve Naroff authored
Extend RewriteTest::RewriteObjCIvarRefExpr() to cope with static typing (when using -> on a type which corresponds to the implementation type). llvm-svn: 44170
-
Steve Naroff authored
Tweak funky cast to accommodate messaging 'super'. This removes any spurious warnings. llvm-svn: 44169
-
Steve Naroff authored
Rewrite for messaging 'super'. The code gen. results in some spurious warnings...a cast is forthcoming. llvm-svn: 44168
-
Nate Begeman authored
llvm-svn: 44164
-
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
-
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
-
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
-
Ted Kremenek authored
llvm-svn: 44137
-
Ted Kremenek authored
llvm-svn: 44134
-
Ted Kremenek authored
llvm-svn: 44133
-
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
-