aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const-call.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-09-06 14:44:20 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:09:32 +0100
commit4a2bd8382529db95b37c216f5abe96aa752b34a1 (patch)
tree9606a81009143f6ead438df5714e5f9f015f64ce /gcc/fold-const-call.cc
parent4ec72feab8a555e73f7485b9c3792202b19cbe3c (diff)
downloadgcc-4a2bd8382529db95b37c216f5abe96aa752b34a1.zip
gcc-4a2bd8382529db95b37c216f5abe96aa752b34a1.tar.gz
gcc-4a2bd8382529db95b37c216f5abe96aa752b34a1.tar.bz2
gccrs: Collect procedural macros in the crate
Collect informations on procedural macros in the compiled crate. For attribute and bang procedural macros we only require the final address as well as the name of the function. Derive procedural macros are a bit different, we collect the fonction's address through it's fndecl tree as well as the trait's name and the multiple attributes. gcc/rust/ChangeLog: * backend/rust-compile-base.cc (HIRCompileBase::setup_fndecl): Make the function non static in order to be able to access the compile context. Also add the whole proc macro infomrmation collection. (get_attributes): Add a function to retrieve the different attributes from a derive procedural macro definition attribute. (get_trait_name): Add a function to retrieve the trait name from a derive procedural macro definition attribute. * backend/rust-compile-base.h: Add function prototypes. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/fold-const-call.cc')
0 files changed, 0 insertions, 0 deletions