summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* the __gnuc_inline__ attribute is actually named __gnu_inline__,Chris Lattner2009-04-201-1/+1
| | | | | | PR4023 llvm-svn: 69618
* Introduce the notion of a SemaConsumer, which is an ASTConsumer thatDouglas Gregor2009-04-201-1/+5
| | | | | | | | | also gets access to the Sema object performing semantic analysis. This will be used by the PCH writer to serialize Sema state. No functionality change. llvm-svn: 69595
* Add pch reader/writer support for ObjCMethodDecl.Steve Naroff2009-04-201-0/+27
| | | | | | Test will be enabled with ObjCInterfaceDecl is added. llvm-svn: 69594
* Add location info for indirect goto.Chris Lattner2009-04-191-0/+1
| | | | llvm-svn: 69497
* Don't emit name-lookup tables for functions or methods in the PCH filesDouglas Gregor2009-04-181-0/+5
| | | | llvm-svn: 69449
* Store the type ID for __builtin_va_list in the PCH file, so that theDouglas Gregor2009-04-181-1/+8
| | | | | | | | AST context's __builtin_va_list type will be set when the PCH file is loaded. This fixes the crash when CodeGen'ing a va_arg expression pulled in from a PCH file. llvm-svn: 69421
* FunctionDecl::getBody() is getting an ASTContext argument for use inDouglas Gregor2009-04-181-4/+6
| | | | | | | | lazy PCH deserialization. Propagate that argument wherever it needs to be. No functionality change, except that I've tightened up a few PCH tests in preparation. llvm-svn: 69406
* Keep track of the number of statements/expressions written to and readDouglas Gregor2009-04-171-1/+8
| | | | | | | from a PCH file. It turns out that "Hello, World!" is bringing in 19% of all of the statements in Carbon.h, so we need to be lazy. llvm-svn: 69393
* PCH support for inline assembly statements.Douglas Gregor2009-04-171-3/+34
| | | | | | | This completes support for all of C (+ extensions). We can (again) build a PCH file for Carbon.h. llvm-svn: 69385
* PCH support for blocksDouglas Gregor2009-04-171-1/+9
| | | | llvm-svn: 69373
* PCH support for GNU statement expressionsDouglas Gregor2009-04-171-0/+9
| | | | llvm-svn: 69370
* PCH support for indirect gotos and address-of-label expressions.Douglas Gregor2009-04-171-0/+16
| | | | llvm-svn: 69369
* PCH support for labels and goto.Douglas Gregor2009-04-171-0/+31
| | | | llvm-svn: 69364
* PCH support for declaration statements, and a test for PredefinedExprDouglas Gregor2009-04-171-0/+11
| | | | llvm-svn: 69356
* PCH support for return statements.Douglas Gregor2009-04-171-0/+9
| | | | | | | Optimize PCH encoding for switch-case statements slightly, by making the switch-case numbering local to a particular statement. llvm-svn: 69355
* PCH support for do-while and for loopsDouglas Gregor2009-04-171-0/+20
| | | | llvm-svn: 69334
* PCH support for while and continue statementsDouglas Gregor2009-04-171-0/+16
| | | | llvm-svn: 69332
* PCH support for the first batch of statements, including null,Douglas Gregor2009-04-171-1/+94
| | | | | | compound, case, default, if, switch, and break statements. llvm-svn: 69329
* Prepare PCH reader and writer for (de-)serialization of statements. NoDouglas Gregor2009-04-161-112/+113
| | | | | | functionality change. llvm-svn: 69319
* Eliminate pch::TYPE_ATTR, which is never usedDouglas Gregor2009-04-161-2/+0
| | | | llvm-svn: 69256
* PCH support for CompoundLiteralExpr. This is the last C expressionDouglas Gregor2009-04-161-0/+9
| | | | | | | that does not require PCH support for statements. Only AddrLabelExpr, StmtExpr, and BlockExpr remain (for C). llvm-svn: 69255
* PCH support for InitListExpr, DesignatedInitExpr, and ImplicitValueInitExpr.Douglas Gregor2009-04-161-0/+58
| | | | llvm-svn: 69251
* PCH support for ShuffleVectorExpr and BlockDeclRefExprDouglas Gregor2009-04-161-0/+20
| | | | llvm-svn: 69244
* PCH support for TypesCompatibleExpr, ChooseExpr, and GNUNullExpr.Douglas Gregor2009-04-151-0/+28
| | | | llvm-svn: 69242
* PCH support for ExtVectorElementExpr and VAArgExpr.Douglas Gregor2009-04-151-0/+18
| | | | llvm-svn: 69240
* PCH support for CompoundAssignOperator and ConditionalOperatorDouglas Gregor2009-04-151-0/+17
| | | | llvm-svn: 69237
* PCH support for ImaginaryLiteral and ArraySubscriptExprDouglas Gregor2009-04-151-0/+16
| | | | llvm-svn: 69233
* PCH support for declaration attributesDouglas Gregor2009-04-151-1/+133
| | | | llvm-svn: 69225
* PCH support for the string literal of a FileScopeAsmDecl.Douglas Gregor2009-04-151-4/+4
| | | | | | Some minor cleanup. llvm-svn: 69196
* For source location entries that describe instantiations, encode theDouglas Gregor2009-04-151-0/+8
| | | | | | | token length in the PCH file rather than trying (and failing) to reconstruct it be getting the spelling token's length. llvm-svn: 69191
* PCH support for MemberExpr and CallExpr.Douglas Gregor2009-04-151-0/+22
| | | | llvm-svn: 69186
* PCH support for string literalsDouglas Gregor2009-04-151-0/+17
| | | | llvm-svn: 69172
* PCH support for UnaryOperator, SizeOfAlignOfExprDouglas Gregor2009-04-151-0/+24
| | | | llvm-svn: 69169
* PCH support for CStyleCastExpr and BinaryOperator expression kinds.Douglas Gregor2009-04-151-0/+24
| | | | llvm-svn: 69119
* PCH support for ParenExprDouglas Gregor2009-04-141-0/+9
| | | | llvm-svn: 69106
* Add PCH support for ImplicitCastExprs. This is the first expressionDouglas Gregor2009-04-141-4/+44
| | | | | | | | | | kind PCH handles that has an expression as an operand, so most of this work is in the infrastructure to rebuild expression trees from the serialized representation. We now store expressions in post-order (e.g., Reverse Polish Notation), so that we can easily rebuild the appropriate expression tree. llvm-svn: 69101
* Add PCH support for PredefinedExpr and FloatingLiteral expressionsDouglas Gregor2009-04-141-0/+23
| | | | llvm-svn: 69084
* PCH support for a few very, very simple kinds of expressions. Hook upDouglas Gregor2009-04-141-9/+93
| | | | | | | expression (de-)serialization for VLAs, variable initializers, enum constant initializers, and bitfield widths. llvm-svn: 69075
* When writing a PCH file, keep track of all of the non-static,Douglas Gregor2009-04-141-2/+25
| | | | | | | | | non-inline external definitions (and tentative definitions) that are found at the top level. The corresponding declarations are stored in a record in the PCH file, so that they can be provided to the ASTConsumer (via HandleTopLevelDecl) when the PCH file is read. llvm-svn: 69005
* Partial PCH support for FileScopeAsmDecl and BlockDecl. Both requireDouglas Gregor2009-04-131-0/+18
| | | | | | expression or statement serialization before we can test them. llvm-svn: 69002
* PCH support for functions and their parameters.Douglas Gregor2009-04-131-1/+38
| | | | llvm-svn: 68997
* PCH support for record decls/types and their fields. Now that we canDouglas Gregor2009-04-131-0/+19
| | | | | | | handle the definition of __builtin_va_list on x86-64, eliminate the forced -triple in PCH tests to get better coverage. llvm-svn: 68988
* Add PCH support for enumerations and enumerators.Douglas Gregor2009-04-131-1/+28
| | | | llvm-svn: 68974
* Include the SourceManager's line table in the PCH file. We can nowDouglas Gregor2009-04-131-2/+38
| | | | | | properly cope with #line directives in PCH files. llvm-svn: 68963
* implement the microsoft/gnu "__COUNTER__" macro: rdar://4329310Chris Lattner2009-04-131-3/+7
| | | | llvm-svn: 68933
* now that we have an identifier table in the PCH file, finish hooking upChris Lattner2009-04-111-15/+3
| | | | | | | macro deserialization. We now correctly install II's in tokens, handle function-like macros, etc. llvm-svn: 68882
* add some #includes for better compatibility with gcc 4.4,Chris Lattner2009-04-111-1/+1
| | | | | | thanks to Tobias Stadler for pointing this out. llvm-svn: 68868
* Store unique IDs for identifiers in the PCH file. Use some bitmanglingDouglas Gregor2009-04-111-5/+60
| | | | | | | so that we only need to perform the lookup and identifier resolution once per identifier in the PCH file. llvm-svn: 68846
* Compare the predefines buffer in the PCH file with the predefinesDouglas Gregor2009-04-101-1/+1
| | | | | | | | | | | | | | | buffer generated for the current translation unit. If they are different, complain and then ignore the PCH file. This effectively checks for all compilation options that somehow would affect preprocessor state (-D, -U, -include, the dreaded -imacros, etc.). When we do accept the PCH file, throw away the contents of the predefines buffer rather than parsing them, since all of the results of that parsing are already stored in the PCH file. This eliminates the ugliness with the redefinition of __builtin_va_list, among other things. llvm-svn: 68838
* add support for reading macros. This does all the reading (with a bunch ofChris Lattner2009-04-101-0/+2
| | | | | | | fixme's, e.g. for tokens with identifiers) but does not actually install them. Some details with the predefines buffer needs to be sorted out first. llvm-svn: 68828
OpenPOWER on IntegriCloud