diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-10-18 21:18:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-10-18 21:18:25 +0000 |
commit | 11407b89c9d7ce8bc31869b0a7aae06add49e3dc (patch) | |
tree | bbf1f96c37b2e3157dc316f07f69062fa8bfced6 /include/clang/Serialization/Module.h | |
parent | eafa9d4d0d8b97f006dbd19c1e51d14663c8c5c3 (diff) |
Move information about the "original file" from the ASTReader into the
module files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Serialization/Module.h')
-rw-r--r-- | include/clang/Serialization/Module.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/clang/Serialization/Module.h b/include/clang/Serialization/Module.h index ecf0ae1349..a4c156e293 100644 --- a/include/clang/Serialization/Module.h +++ b/include/clang/Serialization/Module.h @@ -75,6 +75,23 @@ public: /// \brief The file name of the module file. std::string FileName; + /// \brief The original source file name that was used to build the + /// primary AST file, which may have been modified for + /// relocatable-pch support. + std::string OriginalSourceFileName; + + /// \brief The actual original source file name that was used to + /// build this AST file. + std::string ActualOriginalSourceFileName; + + /// \brief The file ID for the original source file that was used to + /// build this AST file. + FileID OriginalSourceFileID; + + /// \brief The directory that the PCH was originally created in. Used to + /// allow resolving headers even after headers+PCH was moved to a new path. + std::string OriginalDir; + /// \brief The file entry for the module file. const FileEntry *File; |