Merge pull request #23465 from adrian-prantl/48018240-irgen

Add a -public-linkage-for-metadata-accessors IRGen flag for LLDB.
This commit is contained in:
adrian-prantl
2019-03-27 12:13:41 -07:00
committed by GitHub
9 changed files with 71 additions and 3 deletions

View File

@@ -1088,6 +1088,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
Opts.EnableResilienceBypass = true;
}
if (Args.hasArg(OPT_force_public_linkage)) {
Opts.ForcePublicLinkage = true;
}
// PE/COFF cannot deal with the cross-module reference to the metadata parent
// (e.g. NativeObject). Force the lazy initialization of the VWT always.
Opts.LazyInitializeClassMetadata = Triple.isOSBinFormatCOFF();