Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Implement test/Sema/init.c by treating functions as constants. | Chris Lattner | 2007-11-01 | 1 | -2/+5 | |
| | | | | llvm-svn: 43599 | |||||
* | Implemented more of serialization/deserialization for ASTContext. We now | Ted Kremenek | 2007-10-31 | 1 | -17/+93 | |
| | | | | | | (hypothetically) read in/write out most of the types. Bugs likely exist. llvm-svn: 43584 | |||||
* | Adjusted QualType deserialization to reflect updated deserialization API. | Ted Kremenek | 2007-10-31 | 2 | -5/+5 | |
| | | | | | | We now serialize ivar references inside of ASTContext. llvm-svn: 43571 | |||||
* | Preliminary support for serializing statements. | Ted Kremenek | 2007-10-31 | 1 | -0/+97 | |
| | | | | llvm-svn: 43566 | |||||
* | Implemented serialization of Variable Array Types (VLAs). | Ted Kremenek | 2007-10-31 | 2 | -5/+23 | |
| | | | | llvm-svn: 43561 | |||||
* | Renamed ivar "ArrayTypes" in ASTContext to "ComplexArrayTypes". | Ted Kremenek | 2007-10-31 | 1 | -3/+48 | |
| | | | | | | Added skeleton code for serialization of ASTContext. llvm-svn: 43558 | |||||
* | Encode Class, SEL and Objective-C objects. | Anders Carlsson | 2007-10-31 | 1 | -1/+24 | |
| | | | | llvm-svn: 43540 | |||||
* | __real__ and __imag__ can be lvalues. Add support to ast and codegen for them. | Chris Lattner | 2007-10-30 | 1 | -2/+7 | |
| | | | | llvm-svn: 43525 | |||||
* | Refactored CFG construction code that processes DeclStmts to use StmtIterator. | Ted Kremenek | 2007-10-30 | 1 | -23/+21 | |
| | | | | | | | Now CFG construction transparently supports Variable Length Array declarations with expressions for their sizes, and typedefs that include VLAs. llvm-svn: 43520 | |||||
* | minor code cleanup | Chris Lattner | 2007-10-30 | 1 | -4/+2 | |
| | | | | llvm-svn: 43512 | |||||
* | Added type encoding for 'id' type. | Fariborz Jahanian | 2007-10-30 | 1 | -0/+4 | |
| | | | | llvm-svn: 43504 | |||||
* | Added vector to ASTContext to store references to "complete" VLA types | Ted Kremenek | 2007-10-30 | 1 | -3/+3 | |
| | | | | | | | (VLAs with a specified size expresssion). This vector owns the references to these type objects. llvm-svn: 43502 | |||||
* | - Add location info to category/protocol AST's | Steve Naroff | 2007-10-30 | 1 | -2/+4 | |
| | | | | | | - Rewrite categories. llvm-svn: 43501 | |||||
* | More support for rewriting ObjC intefaces. Still some edge cases to handle... | Steve Naroff | 2007-10-30 | 1 | -3/+3 | |
| | | | | llvm-svn: 43493 | |||||
* | Handle function types. | Anders Carlsson | 2007-10-30 | 1 | -0/+2 | |
| | | | | llvm-svn: 43485 | |||||
* | VariableArrayTypes (VLAs) without a size expression are now uniqued | Ted Kremenek | 2007-10-29 | 1 | -5/+43 | |
| | | | | | | and inserted into a FoldingSet owned by ASTContext. llvm-svn: 43482 | |||||
* | Encoding for objectiive-c methods. | Fariborz Jahanian | 2007-10-29 | 2 | -0/+67 | |
| | | | | llvm-svn: 43481 | |||||
* | This commit contains lot's of small tweaks to how we pass around and store ↵ | Steve Naroff | 2007-10-29 | 1 | -26/+34 | |
| | | | | | | SourceLocation's for interfaces/protocols/categories/implementations. llvm-svn: 43475 | |||||
* | Added support for StmtIterators to iterate over the size expressions | Ted Kremenek | 2007-10-29 | 1 | -4/+12 | |
| | | | | | | | | | | | | | of VariableArrayTypes that appear in TypedefDecls. for example: typedef int T[x][x]; the StmtIterator will iterate over "x" and "x" as subexpressions of the DeclStmt for T. llvm-svn: 43474 | |||||
* | Fixed deadcode bug where check for NULL decl occured within a block | Ted Kremenek | 2007-10-29 | 1 | -5/+6 | |
| | | | | | | | where the decl would always be non-NULL. Moved the check to after the block to properly tidy up the iterator's state. llvm-svn: 43473 | |||||
* | Modified StmtIterator to support iteration over the size expressions | Ted Kremenek | 2007-10-29 | 1 | -44/+66 | |
| | | | | | | | | | of VariableTypeArray types that appear in DeclStmts. Removed operator-- from StmtIterator. operator-- added undesired complexity, and we have no consumers of it. llvm-svn: 43471 | |||||
* | Modified CFG pretty-printing to directly use the (reverse) body | Ted Kremenek | 2007-10-29 | 1 | -1/+1 | |
| | | | | | | iterator of a CompountStmt instead of relying on StmtIterators. llvm-svn: 43469 | |||||
* | Renamed internal variables of StmtIteratorBase to make the code | Ted Kremenek | 2007-10-29 | 1 | -10/+10 | |
| | | | | | | | | | slightly more succinct. Introduced VariableArrayType* within StmtIteratorBase to (soon) support iteration over the size expressions of variable length arrays. llvm-svn: 43455 | |||||
* | Address Chris's comments. | Anders Carlsson | 2007-10-29 | 1 | -10/+16 | |
| | | | | llvm-svn: 43445 | |||||
* | Fix logic error. | Anders Carlsson | 2007-10-29 | 1 | -1/+1 | |
| | | | | llvm-svn: 43443 | |||||
* | Add (partial) support for @encode. | Anders Carlsson | 2007-10-29 | 1 | -0/+100 | |
| | | | | llvm-svn: 43439 | |||||
* | Add prototype info for __builtin_memcpy, reducing #diagnostics from 37 to 34 on | Chris Lattner | 2007-10-29 | 1 | -0/+4 | |
| | | | | | | PR1750 llvm-svn: 43435 | |||||
* | Implement *skeletal* support for representing GNU inline asm stmts in the AST, | Chris Lattner | 2007-10-29 | 2 | -0/+9 | |
| | | | | | | | resolving a crash on a .i file in PR1750. We now generate 49 errors on the .i file in that bug. llvm-svn: 43433 | |||||
* | Fix a major bug in the Type::getAs*Type methods: they didn't strip off | Chris Lattner | 2007-10-29 | 1 | -51/+94 | |
| | | | | | | | typeof(type) and typeof(expr) correctly. Now provide a single point of contact (Type::getDesugaredType) for doing the shallow stripping we need. llvm-svn: 43432 | |||||
* | Add BuiltinType::Char_S to Type::isCharType | Anders Carlsson | 2007-10-29 | 1 | -1/+2 | |
| | | | | llvm-svn: 43428 | |||||
* | Implemented serialization for TypedefType. | Ted Kremenek | 2007-10-28 | 1 | -0/+12 | |
| | | | | llvm-svn: 43423 | |||||
* | Implemented serialization of FunctionTypeProto. | Ted Kremenek | 2007-10-28 | 1 | -0/+31 | |
| | | | | llvm-svn: 43419 | |||||
* | Implemented serialization of FunctionTypeNoProto. | Ted Kremenek | 2007-10-27 | 1 | -0/+19 | |
| | | | | llvm-svn: 43418 | |||||
* | Implemented serialization for VectorType. | Ted Kremenek | 2007-10-27 | 1 | -0/+14 | |
| | | | | llvm-svn: 43417 | |||||
* | More work on type serialization: added support for serializing BuiltinTypes. | Ted Kremenek | 2007-10-26 | 1 | -1/+23 | |
| | | | | llvm-svn: 43414 | |||||
* | Completed serialization of ConstantArrayTypes (now that APInt serialization ↵ | Ted Kremenek | 2007-10-26 | 1 | -13/+5 | |
| | | | | | | is in place). llvm-svn: 43407 | |||||
* | Added skeleton implementation of serialization for types (not complete). | Ted Kremenek | 2007-10-26 | 1 | -0/+127 | |
| | | | | llvm-svn: 43397 | |||||
* | Disambiguated variable name to comply with VC++'s archaic variable scoping ↵ | Hartmut Kaiser | 2007-10-25 | 1 | -2/+2 | |
| | | | | | | rules. llvm-svn: 43371 | |||||
* | Modified StmtIterator to now include visiting the initialization expression ↵ | Ted Kremenek | 2007-10-25 | 1 | -8/+21 | |
| | | | | | | for EnumConstantDecls. llvm-svn: 43366 | |||||
* | Added skeleton for Decl serialization. | Ted Kremenek | 2007-10-25 | 1 | -0/+62 | |
| | | | | llvm-svn: 43361 | |||||
* | Add a new ChooseExpr::isConditionTrue method to unify | Chris Lattner | 2007-10-25 | 1 | -0/+8 | |
| | | | | | | some code. llvm-svn: 43322 | |||||
* | Modified operator* for StmtIterator to return Stmt*& instead of Stmt*. | Ted Kremenek | 2007-10-24 | 1 | -2/+2 | |
| | | | | | | This permits in-place replacement of the original AST statements. llvm-svn: 43295 | |||||
* | Fixed DeclStmt::child_begin() to actually create an iterator that | Ted Kremenek | 2007-10-18 | 4 | -40/+67 | |
| | | | | | | | | | | | | | visits its decls, rather than just creating an "end()" iterator. Fixed child_end() for statements and expressions to use child_iterator() to create the end() iterator, rather than just returning NULL. Fixed bug in StmtIterator where we did not correctly detect if we had marched off the end of the ScopedDecls. llvm-svn: 43156 | |||||
* | remove dead #include | Chris Lattner | 2007-10-18 | 1 | -1/+0 | |
| | | | | llvm-svn: 43149 | |||||
* | Refactored StmtIterator into classes StmtIteratorBase (non-templated) | Ted Kremenek | 2007-10-18 | 1 | -19/+33 | |
| | | | | | | | | | | and StmtIteratorImpl (templated), which StmtIterator and ConstStmtIterator now succintly subclass. Implemented iteration over the initializers in DeclStmts. This is not thoroughly tested, so there may be bugs. llvm-svn: 43138 | |||||
* | Replaced virtual method call to child_begin() in child_end() by | Ted Kremenek | 2007-10-18 | 1 | -1/+1 | |
| | | | | | | directly inlining its logic. llvm-svn: 43137 | |||||
* | Fixed broken build. | Ted Kremenek | 2007-10-18 | 1 | -2/+25 | |
| | | | | llvm-svn: 43132 | |||||
* | remove extraneous space in @selector() | Chris Lattner | 2007-10-18 | 1 | -9/+3 | |
| | | | | llvm-svn: 43110 | |||||
* | Implemented 90% functionality of new child_iterator for Stmt objects | Ted Kremenek | 2007-10-18 | 3 | -2/+29 | |
| | | | | | | | | | | | | | | | that will (soon) allow iteration over the initializers in declarations. This new iterator mechanism is implemented by the classes StmtIterator and ConstStmtIterator. Patched a few files to use "operator++" instead of "operator+" on child_iterators. Friendship added in VarDecl to StmtIterator to allow returning a reference to the initializer within the VarDecl. We may not wish this as a permanent solution. llvm-svn: 43105 | |||||
* | Make control flow in Expr::isConstantExpr more simple and | Chris Lattner | 2007-10-18 | 1 | -20/+12 | |
| | | | | | | local, making the code easier to read. llvm-svn: 43104 |