diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-12-08 17:39:04 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-12-08 17:39:04 +0000 |
commit | 10694cee2588442bee1e717f5042c58ffee25279 (patch) | |
tree | 0e68adeb28deebf940644f53fafadf0f4ef3d862 /lib/Serialization/ASTWriter.cpp | |
parent | 5e3f9223db88227d6d21679c613b139d8160186d (diff) |
Within the module representation, generalize the notion of an umbrella
header to also support umbrella directories. The umbrella directory
for an umbrella header is the directory in which the umbrella header
resides.
No functionality change yet, but it's coming.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriter.cpp')
-rw-r--r-- | lib/Serialization/ASTWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index 946bc76c40..1bd9050fe0 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/lib/Serialization/ASTWriter.cpp @@ -1941,11 +1941,11 @@ void ASTWriter::WriteSubmodules(Module *WritingModule) { Stream.EmitRecordWithBlob(DefinitionAbbrev, Record, Mod->Name); // Emit the umbrella header, if there is one. - if (Mod->UmbrellaHeader) { + if (const FileEntry *UmbrellaHeader = Mod->getUmbrellaHeader()) { Record.clear(); Record.push_back(SUBMODULE_UMBRELLA); Stream.EmitRecordWithBlob(UmbrellaAbbrev, Record, - Mod->UmbrellaHeader->getName()); + UmbrellaHeader->getName()); } // Emit the headers. |