aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-11-14Implemented serialization of FieldDecls.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44126 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14SourceManager, IdentifierTable, Selectors are now serialized in their ownTed Kremenek
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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44125 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Removed unused variabel.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44123 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Fix a bug handling hex floats in c90 mode, pointed out by Neil.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44120 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Fix yesterday's regression with rewriting @optional/@required.Steve Naroff
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44119 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Rewrite methods that span multiple lines.Steve Naroff
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44118 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Allow properties within a protocol. The case below was asserting...now it ↵Steve Naroff
works fine. @protocol CAMediaTiming @property int beginTime; @end Comments in the code tell the rest of the story... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44117 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Implemented serialization of RecordDecls. Changed serialization of TagType toTed Kremenek
have an owning pointer to the referred TagDecl. This should hopefully fix a bug where TagDecls (including decls from structs, etc.) were not serialized. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44106 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14implement test/Sema/typedef-prototype.c, allowing codeChris Lattner
to declare a function with a typedef: typedef int unary_int_func(int arg); unary_int_func add_one; This patch contributed by Seo Sanghyeon! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44100 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Comment out recent regression r44096.Steve Naroff
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44098 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Rewrite @optional/@required directives used inside protocol definitions.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44096 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Rewrite of forward protocol declaration.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44095 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Implemented serialization of FunctionTypeNoProto.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44094 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Implemented serialization of VariableArrayTypes.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44093 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Implemented serialization of TypedefType.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44092 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Implemented serialization of ConstantArrayType.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44091 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Implemented serialization of TagTypes.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44090 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-14Modified ASTContext::getTagDeclType() to accept a NULL pointer for the passedTed Kremenek
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44089 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Fix regression with ObjC method definitions and -ast-printSteve Naroff
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44088 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Type encoding for structs.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44087 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Rewrite method definition bodies. Also renamed a method to distinguish ↵Steve Naroff
between method declarations and definitions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44080 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Removed line with typo (declared friendship with ASTContext). Line wasTed Kremenek
not needed since friendship is declared elsewhere. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44079 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Added pretty-printing of statements during serialization.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44078 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Implemented serialization of AsmStmt (or rather what is currently implementedTed Kremenek
in AsmStmt). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44077 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Fixed bug in FunctionDecl serialization where we crashed when theTed Kremenek
FunctionDecl had decls for its parameters but still had greater than 0 arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44076 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Implemented serialization for SizeOfAlignOfTypeExpr.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44075 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Implemented serialization for MemberExpr.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44074 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Give AST-walk passes a way to access DeclSpec attributes on functions andNate Begeman
variables. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44073 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Fixed a rewrite of metadata bug when category implementation has no matching ↵Fariborz Jahanian
interface. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44072 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Rewrote type serialization to used the same methodology as we do for Decls.Ted Kremenek
Removed tons of dead code in ASTContext concerning how types use to be serialized. Removed serialization methods from QualType that are no longer used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44070 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Rename Sema method to follow class naming conventionNate Begeman
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44069 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Populate metadata with adrress of method code.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44066 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Parse "sizeof(arr)[0]" as a sizeof of an expr if arr Chris Lattner
is an expression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44065 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Rewrite of method definitions in categories.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44062 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Order of methods are OK and generated .c file can be compiled.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44060 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Updated test case to flag about comparisons against constants. We mayTed Kremenek
invert this case (i.e., not flag a warning) in the future. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44059 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Modified -Wfloat-equal logic to suppress warnings where floating point valuesTed Kremenek
are compared against builtins such as __builtin_inf. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44058 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13First patch in rewrie of method definitions. This is work in progress.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44055 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Updated diagnostic for -Wfloat-equal to underline the offending expressions.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44054 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Added -Wfloat-equal option to the driver. This makes warnings aboutTed Kremenek
floating point comparisons using == or != an opt-in rather than a default warning. Updated test case to use -Wfloat-equal. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44053 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Clean up types, removing some casts. Patch contributed byChris Lattner
Cedric Venet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44050 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13improve handling of address of global when checking forChris Lattner
constants and initializers. Patch by Sanghyeon Seo, thanks! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44049 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Teach Sema::CheckCompareOperands() about "void *" (C99 6.5.9p2)Steve Naroff
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44047 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Tune the lookup logic in Sema::ActOnInstanceMessage() to handle private ↵Steve Naroff
methods (declared within the implementation). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44041 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Minor indenting changes and removed a level of casting in getClassInterface();Steve Naroff
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44039 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Patch to set context (interface, category, etc.) in which method is declared.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44038 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Fix Sema::CheckAssignmentConstraints() to operate on the canonical, ↵Steve Naroff
unqualified type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44036 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Renamed all serialization "Materialize" methods to "Create" to conform withTed Kremenek
the new serialization API. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44035 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-13Restructured serialization code for decls to make it cleaner, easier toTed Kremenek
understand, and batched the emission owned subobjects (using BatchEmitOwnedPtr) to get a smaller output bitcode size. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44033 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-12Patch to do statically typed ivar references.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44028 91177308-0d34-0410-b5e6-96231b3b80d8