summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-08 17:39:04 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-08 17:39:04 +0000
commit73141fa98d34ccd5cd420301122df4e214d9238a (patch)
tree735c613820ce3692df6c8c2580ce7f04b179b7fd /clang/lib/Serialization/ASTWriter.cpp
parentc09e4593b2ab7aadf07aef1c6b2be7f6d6e13061 (diff)
downloadbcm5719-llvm-73141fa98d34ccd5cd420301122df4e214d9238a.tar.gz
bcm5719-llvm-73141fa98d34ccd5cd420301122df4e214d9238a.zip
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. llvm-svn: 146158
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 946bc76c40d..1bd9050fe0b 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud