aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-11-08abstract out buffer type a bit betterChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43883 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-08use insert instead of replacing 0 bytes with text :)Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43882 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-08minor cleanupsChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43881 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-08use std::copy instead of memcpy for abstraction.Chris Lattner
Disable rewrite-tabs. This speeds up processing of the commentified huge crazy testcase steve gave me from 20s to 6.6s in a release build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43880 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-08Fix a rewriter bug that fariborz hit, when an @interface was the very very veryChris Lattner
first thing in the file. The trick is that text replacement should go after the insert point, not before it, because it will be replacing text after the point, not before it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43879 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-08Revised serialization of CaseStmt to emit all of the owned pointers (itsTed Kremenek
subexpressions) all together in one block at the end. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43862 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-08Implemented serialization of CompoundAssignOperator.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43860 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-08Add assert for the case that is not handled.Devang Patel
struct { char a; short b:2; }; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43859 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-08Implemented serialization of UnaryOperator.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43858 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-08Keep track of beginning offset for the bit field that does not start at byte ↵Devang Patel
boundry. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43857 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of CallExpr.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43854 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of ArraySubscriptExpr.Ted Kremenek
Added "using ..." for "Serializer" and "Deserializer" to reduce amount of typing for serialization methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43849 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of CastExpr.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43848 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of ImplicitCastExpr.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43847 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Modified serialization of BinaryOperator and CaseStmt to use the newTed Kremenek
BatchEmitOwnedPtrs() and BatchReadOwnedPtrs() methods. Modified serialization of all Stmts to start their own record in the bitstream. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43846 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Stay within 80 columns.Devang Patel
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43843 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Updated VC++ build systemHartmut Kaiser
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43838 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of StringLiteral.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43834 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of ImaginaryLiteral.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43833 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of FloatingLiteral.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43832 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Finishing touches on code generation for @try and friends.Steve Naroff
- declare functions we use. - cast arguments to objc_exception_match(). - don't take the & of _stack.buf. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43831 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Emit objective-c's meta-data at the end of rewriting to stdout.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43830 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Remove old asserts from ASTContext::isObjcIdType() and isObjcClassType(). ↵Steve Naroff
Instead, return false if the declarations aren't in scope. This was a hold over from when 'id' and 'Class' were initialized lazily. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43827 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Fixed an array overflow bug.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43826 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Fixed typo.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43825 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of CharacterLiteral.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43824 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialiation of PreDefinedExpr.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43823 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of ContinueStmt.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43822 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of IndirectGotoStmt.Ted Kremenek
Added "FIXME" regarding the lack of source location information for IndirectGotoStmt. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43821 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implement rewrite for @throw.Steve Naroff
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43820 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of GotoStmt.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43818 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization for ForStmt.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43817 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of DoStmt.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43816 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization for WhileStmt.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43815 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of IfStmt.Ted Kremenek
Fixed declarations of several "directEmit" methods of classes that subclass Stmt that were missing a "virtual" keyword. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43814 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Teach ASTContext::tagTypesAreCompatible() about the built-in ObjC types ↵Steve Naroff
(Class and id), removing a bogus warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43809 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of SwitchStmt, CaseStmt, BreakStmt, DefaultStmt,Ted Kremenek
and ParenExpr. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43806 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Rewrite ObjC @try/@catch/@finally. Some minor tweaks to the AST nodes...Steve Naroff
Still need to rewrite @throw (and do more testing)... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43803 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07AST for objective-c's @throw statement and its pretty-printing.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43802 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Start struct bit field laout work. Devang Patel
This is far from complete. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43801 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Implemented serialization of LabelStmts.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43800 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Fixed a pretty-printer bug whereby a @try statement with no @finally seg ↵Fariborz Jahanian
faulted. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43798 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Added serialization/deserialization of NullStmts.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43797 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Added serialization/deserialization of DeclStmts.Ted Kremenek
Reordered stmt serialization method implementations to be in alphabetical order. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43796 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Overhauled serialization of statements. We no longer use specialized ↵Ted Kremenek
SerializeTrait<> classes, but methods in Stmt (like other objects we are serializing). Full serialization of all statements is not yet complete. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43793 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Added static inline method "ReadVal" to QualType for more succinctTed Kremenek
deserialization code of objects containing QualTypes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43792 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-07Rewrite for properties.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43791 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-06Fixed typo in the name of "ReadPreamble".Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43790 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-06Fix an inverted conditional, Fariborz Jahanian
--chris git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43789 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-06Started work on new serialization approach within ASTContext toTed Kremenek
serialize Type objects in the order they are serialized in the Types vector. We also now rely on the methods within ASTContext to unique Type objects and handle the actual creation of Type objects (these are now called by the deserialization code). This approach solves some hairy issues with ownership of objects and allows us to naturally handle recursive types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43787 91177308-0d34-0410-b5e6-96231b3b80d8