diff options
author | David Faust <david.faust@oracle.com> | 2021-11-15 09:49:38 -0800 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2021-11-16 13:12:53 -0800 |
commit | 95048daaffa5e16df4d663702fe80294eac7b85e (patch) | |
tree | b56f8e72ac7161b460b8e8455d1c957330680790 /gcc/rust/backend/rust-compile-item.h | |
parent | 553e88f1dd4b4794334ee6d1861c185b92361a0b (diff) | |
download | gcc-95048daaffa5e16df4d663702fe80294eac7b85e.zip gcc-95048daaffa5e16df4d663702fe80294eac7b85e.tar.gz gcc-95048daaffa5e16df4d663702fe80294eac7b85e.tar.bz2 |
Replace Bfunction with GCC tree
Diffstat (limited to 'gcc/rust/backend/rust-compile-item.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-item.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rust/backend/rust-compile-item.h b/gcc/rust/backend/rust-compile-item.h index 0e7737c..94a313e 100644 --- a/gcc/rust/backend/rust-compile-item.h +++ b/gcc/rust/backend/rust-compile-item.h @@ -147,14 +147,14 @@ public: // items can be forward compiled which means we may not need to invoke this // code. We might also have already compiled this generic function as well. - Bfunction *lookup = nullptr; + tree lookup = NULL_TREE; if (ctx->lookup_function_decl (fntype->get_ty_ref (), &lookup, fntype->get_id (), fntype)) { // has this been added to the list then it must be finished if (ctx->function_completed (lookup)) { - Bfunction *dummy = nullptr; + tree dummy = NULL_TREE; if (!ctx->lookup_function_decl (fntype->get_ty_ref (), &dummy)) { ctx->insert_function_decl (fntype, lookup); @@ -201,7 +201,7 @@ public: asm_name = ctx->mangle_item (fntype, *canonical_path); } - Bfunction *fndecl + tree fndecl = ctx->get_backend ()->function (compiled_fn_type, ir_symbol_name, asm_name, flags, function.get_locus ()); ctx->insert_function_decl (fntype, fndecl); |