Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ class MultiplexExternalSemaSource : public ExternalSemaSource {
/// \brief Print any statistics that have been gathered regarding
/// the external AST source.
void PrintStats() override;



/// \brief Retrieve the module that corresponds to the given module ID.
Module *getModule(unsigned ID) override;

/// \brief Perform layout on the given record.
///
/// This routine allows the external AST source to provide an specific
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ void MultiplexExternalSemaSource::PrintStats() {
Sources[i]->PrintStats();
}

Module *MultiplexExternalSemaSource::getModule(unsigned ID) {
for (size_t i = 0; i < Sources.size(); ++i)
if (auto M = Sources[i]->getModule(ID))
return M;
return nullptr;
}

bool MultiplexExternalSemaSource::layoutRecordType(const RecordDecl *Record,
uint64_t &Size,
uint64_t &Alignment,
Expand Down