summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Encode the target triple in the PCH file, and check that target triple when ↵Douglas Gregor2009-04-101-1/+18
| | | | | | using the PCH file llvm-svn: 68824
* Implement serialization/deserialization of LangOptions in the PCHDouglas Gregor2009-04-101-6/+64
| | | | | | | | | file. When de-serializing LangOptions, we check that the currently-provided language options are consistent with the options used to compile the PCH file. If they are not, we emit a diagnostic and ignore the PCH file. llvm-svn: 68820
* add a new PP_MACRO_NAME hack so that I can test object-like macros.Chris Lattner2009-04-101-0/+7
| | | | llvm-svn: 68803
* emit tokens, constify the Preprocessor passed down into PCH writer.Chris Lattner2009-04-101-3/+25
| | | | llvm-svn: 68798
* emit function-like and object-like macros to the PCH file.Chris Lattner2009-04-101-0/+50
| | | | | | | Note that we don't do anything useful with identifier infos yet and don't emit the tokens that the macros are defined to. llvm-svn: 68797
* Various minor fixes to PCH reading and writing, with generalDouglas Gregor2009-04-101-12/+8
| | | | | | | cleanup. Aside from a minor tweak to the PCH file format, no functionality change. llvm-svn: 68793
* improve punctuationChris Lattner2009-04-101-4/+11
| | | | llvm-svn: 68791
* Arrange for the preprocessor to be passed down into the PCH writer.Chris Lattner2009-04-101-1/+9
| | | | llvm-svn: 68790
* PCH serialization/deserialization of the source manager. With thisDouglas Gregor2009-04-101-0/+152
| | | | | | | | | | | | improvement, source locations read from the PCH file will properly resolve to the source files that were used to build the PCH file itself. Once we have the preprocessor state stored in the PCH file, source locations that refer to macro instantiations that occur in the PCH file should have the appropriate instantiation information. llvm-svn: 68758
* Implementation of pre-compiled headers (PCH) based on lazyDouglas Gregor2009-04-091-0/+636
de-serialization of abstract syntax trees. PCH support serializes the contents of the abstract syntax tree (AST) to a bitstream. When the PCH file is read, declarations are serialized as-needed. For example, a declaration of a variable "x" will be deserialized only when its VarDecl can be found by a client, e.g., based on name lookup for "x" or traversing the entire contents of the owner of "x". This commit provides the framework for serialization and (lazy) deserialization, along with support for variable and typedef declarations (along with several kinds of types). More declarations/types, along with important auxiliary structures (source manager, preprocessor, etc.), will follow. llvm-svn: 68732
OpenPOWER on IntegriCloud