- Nov 26, 2007
-
-
Ted Kremenek authored
llvm-svn: 44338
-
Ted Kremenek authored
http://llvm.org/viewvc/llvm-project?view=rev&revision=44089 "Decl" once again can no longer be NULL, so the NULL checks are not needed. llvm-svn: 44336
-
Ted Kremenek authored
the LHS subexpression can be NULL. Patch provided by Nuno Lopes! llvm-svn: 44328
-
Ted Kremenek authored
extension "?:" for the ternary operator, e.g.: x ?: y; This expression is represented in the clang ASTs as a ConditionalOperator whose LHS expression is NULL. Now we handle this special case, causing the block containing the condition to be a predecessor to the block that "merges" the values of the ternary operator. Thanks to Nuno Lopes for identifying and diagnosing this bug! llvm-svn: 44327
-
- Nov 25, 2007
-
-
Chris Lattner authored
llvm-svn: 44316
-
- Nov 24, 2007
-
-
Anders Carlsson authored
llvm-svn: 44297
-
- Nov 22, 2007
-
-
Anders Carlsson authored
Store output and input operands as well as clobber information in the AsmStmt. Ted, could you please review the serialization/deserialization code? llvm-svn: 44266
-
- Nov 20, 2007
-
-
Anders Carlsson authored
llvm-svn: 44255
-
- Nov 19, 2007
-
-
Anders Carlsson authored
llvm-svn: 44222
-
- Nov 18, 2007
-
-
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
-
- Nov 15, 2007
-
-
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
Finish up variadic methods/messages. llvm-svn: 44172
-
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
-
- Nov 14, 2007
-
-
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
-
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
-
Ted Kremenek authored
llvm-svn: 44127
-
Ted Kremenek authored
llvm-svn: 44126
-
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
llvm-svn: 44094
-
Ted Kremenek authored
llvm-svn: 44093
-
Ted Kremenek authored
llvm-svn: 44092
-
Ted Kremenek authored
llvm-svn: 44091
-
Ted Kremenek authored
llvm-svn: 44090
-
Ted Kremenek authored
in TagDecl*. This allows the deserializer to use ASTContext to create the TagTypes. Deserialize TagTypes then rely on pointer-backpatching to resolve the decls. This may not be the interface that we want, but as the implementation of TagTypes will potentially change significantly in the future, I'm leaving this for now. An appropriate FIXME is in place. llvm-svn: 44089
-
Fariborz Jahanian authored
llvm-svn: 44087
-
- Nov 13, 2007
-
-
Ted Kremenek authored
in AsmStmt). llvm-svn: 44077
-
Ted Kremenek authored
FunctionDecl had decls for its parameters but still had greater than 0 arguments. llvm-svn: 44076
-
Ted Kremenek authored
llvm-svn: 44075
-
Ted Kremenek authored
llvm-svn: 44074
-
Ted Kremenek authored
Removed tons of dead code in ASTContext concerning how types use to be serialized. Removed serialization methods from QualType that are no longer used. llvm-svn: 44070
-