Add @(link_suffix=<string>)

This commit is contained in:
gingerBill
2024-05-30 21:48:23 +01:00
parent 7bcf33c881
commit 66acbb7fed
5 changed files with 61 additions and 9 deletions
+4 -1
View File
@@ -112,6 +112,7 @@ enum InstrumentationFlag : i32 {
struct AttributeContext {
String link_name;
String link_prefix;
String link_suffix;
String link_section;
String linkage;
isize init_expr_list_count;
@@ -146,9 +147,10 @@ struct AttributeContext {
String enable_target_feature; // will be enabled for the procedure only
};
gb_internal gb_inline AttributeContext make_attribute_context(String link_prefix) {
gb_internal gb_inline AttributeContext make_attribute_context(String link_prefix, String link_suffix) {
AttributeContext ac = {};
ac.link_prefix = link_prefix;
ac.link_suffix = link_suffix;
return ac;
}
@@ -302,6 +304,7 @@ struct ForeignContext {
Ast * curr_library;
ProcCallingConvention default_cc;
String link_prefix;
String link_suffix;
EntityVisiblityKind visibility_kind;
};