]> granicus.if.org Git - clang/commit
[modules] Add optional out-param to ASTReader::ReadAST for imported submodules.
authorGraydon Hoare <ghoare@apple.com>
Fri, 9 Dec 2016 21:45:49 +0000 (21:45 +0000)
committerGraydon Hoare <ghoare@apple.com>
Fri, 9 Dec 2016 21:45:49 +0000 (21:45 +0000)
commita9f313592fec97531d5a2c530a62d41a501bdcd7
tree112d09e9f2cd4bfdf0c8ff5214b7a1f579c1bffa
parentd9da6e9994507d48a41708a26d3e8494a538152c
[modules] Add optional out-param to ASTReader::ReadAST for imported submodules.

Summary:
The Swift frontend is acquiring the ability to load non-module PCH files containing
bridging definitions from C/ObjC. As part of this work, it needs to know which submodules
were imported by a PCH in order to wrap them in local Swift modules. This information
is collected by ASTReader::ReadAST in a local vector, but is currently kept private.

The change here is just to make the type of the vector elements public, and provide
an optional out-parameter to the ReadAST method to provide the vector's contents to
a caller after a successful read.

Reviewers: manmanren, rsmith, doug.gregor

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D27580

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289276 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Serialization/ASTReader.h
lib/Serialization/ASTReader.cpp