Skip to content

Commit 6da8bbb

Browse files
committed
fixup! WIP: Add support for function attributes
1 parent e17fec1 commit 6da8bbb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

gcc/jit/jit-playback.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ const char* fn_attribute_to_string(gcc_jit_fn_attribute attr)
512512
{
513513
case GCC_JIT_FN_ATTRIBUTE_TARGET:
514514
return "target";
515+
case GCC_JIT_FN_ATTRIBUTE_VISIBILITY:
516+
return "visibility";
515517
}
516518
return NULL;
517519
}

gcc/jit/libgccjit.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,6 +2041,7 @@ gcc_jit_type_set_packed (gcc_jit_type *type);
20412041
enum gcc_jit_fn_attribute
20422042
{
20432043
GCC_JIT_FN_ATTRIBUTE_TARGET,
2044+
GCC_JIT_FN_ATTRIBUTE_VISIBILITY,
20442045
};
20452046

20462047
/* Add an attribute to a function. */

0 commit comments

Comments
 (0)