aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree
diff options
context:
space:
mode:
authorbadumbatish <tanghocle456@gmail.com>2024-07-18 07:34:43 -0700
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-19 15:32:06 +0100
commitd3e1f59ba8333b3b7e5e01a604c3f842a9ce535f (patch)
treebaaf5aa4e3f77c20942854312e000f3d32a42e6c /gcc/rust/hir/tree
parenta438e47eeddb5e56dbcb3387417f334a582b5764 (diff)
downloadgcc-d3e1f59ba8333b3b7e5e01a604c3f842a9ce535f.zip
gcc-d3e1f59ba8333b3b7e5e01a604c3f842a9ce535f.tar.gz
gcc-d3e1f59ba8333b3b7e5e01a604c3f842a9ce535f.tar.bz2
gccrs: Minor fix to asm codegen pr
gcc/rust/ChangeLog: * backend/rust-compile-asm.cc (CompileAsm::asm_build_expr): Use expr's is_simple_asm and is_inline_asm (CompileAsm::asm_is_simple): removed (CompileAsm::asm_is_inline): removed * backend/rust-compile-asm.h: Add docs to ASM_TREE_ARRAY_LENGTH * hir/tree/rust-hir-expr.h: Add is_simple_asm, is_inline_asm and remove #include tree
Diffstat (limited to 'gcc/rust/hir/tree')
-rw-r--r--gcc/rust/hir/tree/rust-hir-expr.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h
index 2b86d59..8a42c8b 100644
--- a/gcc/rust/hir/tree/rust-hir-expr.h
+++ b/gcc/rust/hir/tree/rust-hir-expr.h
@@ -25,7 +25,6 @@
#include "rust-hir-path.h"
#include "rust-operators.h"
#include "rust-expr.h"
-#include "tree.h"
namespace Rust {
namespace HIR {
@@ -4147,6 +4146,17 @@ public:
std::set<AST::InlineAsmOption> get_options () { return options; }
+ bool is_simple_asm ()
+ {
+ // TODO: Check back later to determine how an InlineAsm is simple.
+ return true;
+ }
+
+ bool is_inline_asm ()
+ {
+ // TODO: Check back later to determine how an InlineAsm is inline.
+ return true;
+ }
InlineAsm (location_t locus, bool is_global_asm,
std::vector<AST::InlineAsmTemplatePiece> template_,
std::vector<AST::TupleTemplateStr> template_strs,