aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-hir-dump.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-09-04 14:23:10 +0200
committerPhilip Herron <philip.herron@embecosm.com>2023-10-31 11:39:08 +0000
commit327a285500ac640f1d8257d11ea56bf4ab65ee47 (patch)
tree28b355ecfac16f0ff9ce505a18b7a987f3568cf6 /gcc/rust/hir/rust-hir-dump.cc
parentff32f8fdcef87ef569fd072ee12c47237e8da2e7 (diff)
downloadgcc-327a285500ac640f1d8257d11ea56bf4ab65ee47.zip
gcc-327a285500ac640f1d8257d11ea56bf4ab65ee47.tar.gz
gcc-327a285500ac640f1d8257d11ea56bf4ab65ee47.tar.bz2
Change ABI setup and add gccrs_proc_macro attr
Change the way the ABI is setup on a function to avoid duplicates. ABI is setup by the setup function only now. Add a new attribute to the function "gccrs_proc_macro" in order to differentiate it from another type of function. gcc/rust/ChangeLog: * backend/rust-compile-base.cc (handle_proc_macro_common): Add new attribute "gccrs_proc_macro" to all procedural macro functions. (get_abi): Add a function to retrieve the correct ABI depending on wether the function is a proc macro or not. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions