From c1f5dc002f2837a5cfc39933b8df254dde6aa354 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 14 Aug 2015 05:02:58 +0000 Subject: [modules] Add an experimental -cc1 feature to embed the contents of an input file in the .pcm files. This allows a smaller set of files to be sent to a remote build worker when building with explicit modules (for instance, module map files need not be sent along with the corresponding precompiled modules). This doesn't actually make the embedded files visible to header search, so it's not useful as a packaging format for public header files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245028 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/SourceManager.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/clang/Basic/SourceManager.h') diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index bc10cc836e..ec8903e139 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -851,6 +851,13 @@ public: /// This should be called before parsing has begun. void disableFileContentsOverride(const FileEntry *File); + /// \brief Request that the contents of the given source file are written + /// to a created module file if they are used in this compilation. This + /// removes the requirement that the file still exist when the module is used + /// (but does not make the file visible to header search and the like when + /// the module is used). + void embedFileContentsInModule(const FileEntry *SourceFile); + //===--------------------------------------------------------------------===// // FileID manipulation methods. //===--------------------------------------------------------------------===// -- cgit v1.2.3