Skip to content

Commit

Permalink
Minor cleanups to address feedback from Bruno. NFC
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313318 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
DougGregor committed Sep 14, 2017
1 parent f7a9521 commit 9166ea9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
15 changes: 7 additions & 8 deletions docs/Modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down
1 change: 0 additions & 1 deletion lib/Serialization/ASTWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 9166ea9

Please sign in to comment.