aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree
diff options
context:
space:
mode:
authorbadumbatish <tanghocle456@gmail.com>2024-06-30 16:48:30 -0700
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-19 15:32:06 +0100
commitd7e88ed1c8d7eaadf6fc8b8f1e554d4fe6312e37 (patch)
treeca4d664650dcffd486dd3cf5190dccc0f37aa23c /gcc/rust/hir/tree
parent0a03b4862107763bbce731d4f94373f4fd30a38c (diff)
downloadgcc-d7e88ed1c8d7eaadf6fc8b8f1e554d4fe6312e37.zip
gcc-d7e88ed1c8d7eaadf6fc8b8f1e554d4fe6312e37.tar.gz
gcc-d7e88ed1c8d7eaadf6fc8b8f1e554d4fe6312e37.tar.bz2
gccrs: Scaffolding new compile-asm files
gcc/rust/ChangeLog: * Make-lang.in: Scaffolding new compile-asm files * backend/rust-compile-expr.cc (CompileExpr::visit): Likewise * hir/tree/rust-hir-expr.h: Likewise * backend/rust-compile-asm.cc: New file. Likewise * backend/rust-compile-asm.h: New file. Likewise
Diffstat (limited to 'gcc/rust/hir/tree')
-rw-r--r--gcc/rust/hir/tree/rust-hir-expr.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h
index ee46980..2b86d59 100644
--- a/gcc/rust/hir/tree/rust-hir-expr.h
+++ b/gcc/rust/hir/tree/rust-hir-expr.h
@@ -4163,41 +4163,6 @@ public:
options (std::move (options))
{}
-
- tree construct_string_tree ()
- {
- if (template_strs.empty ())
- return build_string (1, "");
- // Initialize to NULL_TREE
- tree string_chain = NULL_TREE;
-
- for (const auto &template_str : template_strs)
- {
- auto str = template_str.symbol;
- auto string_tree = build_string (str.size () + 1, str.c_str ());
-
- string_chain = tree_cons (NULL_TREE, string_tree, string_chain);
- }
- // Reverse the chain before returning
- return nreverse (string_chain);
- }
-
- tree construct_clobber_tree () { return NULL_TREE; }
- tree construct_label_tree () { return NULL_TREE; }
- tree construct_inputs () { return NULL_TREE; }
- tree construct_outputs () { return NULL_TREE; }
- // This function checks if the assembly macro is "simple" or not, according to
- // the tree defition (tree.h) of the
-
- // SIMPLE indicates whether there was anything at all after the
- // string in the asm expression
- bool is_simple ()
- {
- return operands.size () == 0 && clobber_abi.size () == 0
- && options.size () == 0;
- }
-
- bool is_inline_asm () { return !is_global_asm; }
};
} // namespace HIR
} // namespace Rust