mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -1075,8 +1075,11 @@ static void setPrivateDiscriminatorIfNeeded(IRGenOptions &IRGenOpts,
|
||||
!MSF.is<SourceFile *>())
|
||||
return;
|
||||
Identifier PD = MSF.get<SourceFile *>()->getPrivateDiscriminator();
|
||||
if (!PD.empty())
|
||||
IRGenOpts.DWARFDebugFlags += (" -private-discriminator " + PD.str()).str();
|
||||
if (!PD.empty()) {
|
||||
if (!IRGenOpts.DWARFDebugFlags.empty())
|
||||
IRGenOpts.DWARFDebugFlags += " ";
|
||||
IRGenOpts.DWARFDebugFlags += ("-private-discriminator " + PD.str()).str();
|
||||
}
|
||||
}
|
||||
|
||||
static bool serializeSIB(SILModule *SM, const PrimarySpecificPaths &PSPs,
|
||||
|
||||
Reference in New Issue
Block a user