diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-12 23:31:24 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-12 23:31:24 +0000 |
commit | 21cae2059a06f7d89eee169409c9266def1b1aca (patch) | |
tree | 4e73722923a65113a110c7b3003ce0d27b731b42 /lib/Basic/FileManager.cpp | |
parent | 41bdde9e961c4d96a94148f20f0b18397f4358dd (diff) |
When an import statement fails to find a module in the module cache,
but there is a corresponding umbrella header in a framework, build the
module on-the-fly so it can be immediately loaded at the import
statement. This is very much proof-of-concept code, with details to be
fleshed out over time.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileManager.cpp')
-rw-r--r-- | lib/Basic/FileManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Basic/FileManager.cpp b/lib/Basic/FileManager.cpp index 4ac8e4da1d..adc9705405 100644 --- a/lib/Basic/FileManager.cpp +++ b/lib/Basic/FileManager.cpp @@ -380,6 +380,10 @@ const FileEntry *FileManager::getFile(StringRef Filename, bool openFile) { return &UFE; } +void FileManager::forgetFile(StringRef Filename) { + SeenFileEntries.erase(Filename); +} + const FileEntry * FileManager::getVirtualFile(StringRef Filename, off_t Size, time_t ModificationTime) { |