From: Douglas Gregor Date: Thu, 14 Sep 2017 23:40:51 +0000 (+0000) Subject: Minor cleanups to address feedback from Bruno. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9166ea990b271bb430155309b685aad1456a8cc9;p=clang Minor cleanups to address feedback from Bruno. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313318 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/Modules.rst b/docs/Modules.rst index 6dde22c237..431bad1beb 100644 --- a/docs/Modules.rst +++ b/docs/Modules.rst @@ -670,22 +670,21 @@ Note that, if ``Derived.h`` includes ``Base.h``, one can simply use a wildcard e Re-export Declaration ~~~~~~~~~~~~~~~~~~ -An *export-as-declaration* specifies that the current module is a private -module whose interface will be re-exported by the named public module. +An *export-as-declaration* specifies that the current module will have +its interface re-exported by the named module. .. parsed-literal:: *export-as-declaration*: ``export_as`` *identifier* -The *export-as-declaration* names the public module that the current -(private) module will be re-exported through. Only top-level modules +The *export-as-declaration* names the module that the current +module will be re-exported through. Only top-level modules can be re-exported, and any given module may only be re-exported -through a single public module. +through a single module. -**Example:** In the following example, the (private) module -``MyFrameworkCore`` will be re-exported via the public module -``MyFramework``: +**Example:** In the following example, the module ``MyFrameworkCore`` +will be re-exported via the module ``MyFramework``: .. parsed-literal:: diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index 063d6f46e3..4c22067b83 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/lib/Serialization/ASTWriter.cpp @@ -2797,7 +2797,6 @@ void ASTWriter::WriteSubmodules(Module *WritingModule) { Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // Macro name unsigned ExportAsAbbrev = Stream.EmitAbbrev(std::move(Abbrev)); - // Write the submodule metadata block. RecordData::value_type Record[] = { getNumberOfModules(WritingModule),