mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
IRGen: Annotate LLVM IR of condfail with the condfail's message
`-Xfrontend -enable-cond-fail-message-annotation` LLVM IR produced by the Swift compiler will add the `annotation` metadata attribute to the branch instruction generated for cond_fail builtins.
This commit is contained in:
@@ -3764,6 +3764,11 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
Opts.EnableLayoutStringValueWitnessesInstantiation = Args.hasFlag(OPT_enable_layout_string_value_witnesses_instantiation,
|
||||
OPT_disable_layout_string_value_witnesses_instantiation,
|
||||
Opts.EnableLayoutStringValueWitnessesInstantiation);
|
||||
Opts.AnnotateCondFailMessage =
|
||||
Args.hasFlag(OPT_enable_cond_fail_message_annotation,
|
||||
OPT_disable_cond_fail_message_annotation,
|
||||
Opts.AnnotateCondFailMessage);
|
||||
|
||||
|
||||
if (Opts.EnableLayoutStringValueWitnessesInstantiation &&
|
||||
!Opts.EnableLayoutStringValueWitnesses) {
|
||||
|
||||
Reference in New Issue
Block a user