Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial implementation of v0 mangling #2615

Merged
merged 1 commit into from
Oct 16, 2023

Commits on Oct 16, 2023

  1. gccrs: Initial implementation of v0 mangling

    gcc/rust/ChangeLog:
    
    	* backend/rust-compile-context.h: Modify declaration.
    	* backend/rust-mangle.cc (struct V0Path): New struct.
    	(v0_path): New function.
    	(legacy_mangle_name): Take Context as argument.
    	(v0_numeric_prefix): Fix type strings.
    	(v0_complex_type_prefix): New function.
    	(v0_add_integer_62): Deleted
    	(v0_integer_62): New function.
    	(v0_add_opt_integer_62): Deleted.
    	(v0_opt_integer_62): New function.
    	(v0_add_disambiguator): Deleted.
    	(v0_disambiguator): New function.
    	(v0_type_prefix): Support more types.
    	(v0_generic_args): New function.
    	(v0_add_identifier): Deleted.
    	(v0_identifier): New function.
    	(v0_type_path): New function.
    	(v0_function_path): New function.
    	(v0_scope_path): New function.
    	(v0_crate_path): New function.
    	(v0_inherent_or_trait_impl_path): New function.
    	(v0_mangle_item): Use v0_path.
    	(Mangler::mangle_item): Take Context as argument.
    	* backend/rust-mangle.h (class Context): Add forward declaration.
    	* hir/tree/rust-hir-item.h: Fix include.
    
    Signed-off-by: Raiki Tamura <tamaron1203@gmail.com>
    tamaroning authored and CohenArthur committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    64453cb View commit details
    Browse the repository at this point in the history