You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow adding values to the `!llvm.module.flags` metadata for a generated
module. The syntax is
`-Z llvm_module_flag=<name>:<type>:<value>:<behavior>`
Currently only u32 values are supported but the type is required to be
specified for forward compatibility. The `behavior` element must match
one of the named LLVM metadata behaviors.viors.
This flag is expected to be perma-unstable.
pubconst parse_llvm_module_flag:&str = "<key>:<type>:<value>:<behavior>. Type must currently be `u32`. Behavior should be one of (`error`, `warning`, `require`, `override`, `append`, `appendunique`, `max`, `min`)";
424
426
}
425
427
426
428
mod parse {
@@ -1263,6 +1265,33 @@ mod parse {
1263
1265
};
1264
1266
true
1265
1267
}
1268
+
1269
+
pub(crate)fnparse_llvm_module_flag(
1270
+
slot:&mutVec<(String,u32,String)>,
1271
+
v:Option<&str>,
1272
+
) -> bool{
1273
+
let elements = v.unwrap_or_default().split(':').collect::<Vec<_>>();
0 commit comments