[interop][SwiftToCxx] emit instance property getters for structs

This commit is contained in:
Alex Lorenz
2022-06-14 15:32:11 -07:00
parent b04ae714f3
commit d7fd1233a9
13 changed files with 455 additions and 58 deletions

View File

@@ -662,8 +662,9 @@ void swift::printModuleContentsAsCxx(
std::string modulePrologueBuf;
llvm::raw_string_ostream prologueOS{modulePrologueBuf};
// FIXME: Use getRequiredAccess once @expose is supported.
ModuleWriter writer(moduleOS, prologueOS, imports, M, interopContext,
getRequiredAccess(M), OutputLanguageMode::Cxx);
AccessLevel::Public, OutputLanguageMode::Cxx);
writer.write();
os << "#ifndef SWIFT_PRINTED_CORE\n";