aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.cc
diff options
context:
space:
mode:
authorbadumbatish <tanghocle456@gmail.com>2024-07-06 13:17:00 -0700
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-19 15:32:06 +0100
commit0f347d53597f8c325dcea34ee19749e1ddf429d2 (patch)
treebaf50d272a7cf59be7b74ae37d970adf5ea9e64b /gcc/rust/backend/rust-compile-expr.cc
parentc4e0e96cdc5e7c9ae32bcb55e2907ba8d0fa0407 (diff)
downloadgcc-0f347d53597f8c325dcea34ee19749e1ddf429d2.zip
gcc-0f347d53597f8c325dcea34ee19749e1ddf429d2.tar.gz
gcc-0f347d53597f8c325dcea34ee19749e1ddf429d2.tar.bz2
gccrs: Successfully produce pseudo-nop
gcc/rust/ChangeLog: * backend/rust-compile-asm.cc (CompileAsm::add_stmt): Deleted (CompileAsm::CompileAsm): Successfully produce pseudo-nop (CompileAsm::visit): Likewise (CompileAsm::asm_build_asm_stmt): Likewise (CompileAsm::asm_construct_string_tree): Likewise (CompileAsm::asm_is_inline): Likewise * backend/rust-compile-asm.h (class CompileAsm): Likewise * backend/rust-compile-expr.cc (CompileExpr::visit): Likewise
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.cc')
-rw-r--r--gcc/rust/backend/rust-compile-expr.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc
index b59ed41..31f9809 100644
--- a/gcc/rust/backend/rust-compile-expr.cc
+++ b/gcc/rust/backend/rust-compile-expr.cc
@@ -321,7 +321,8 @@ CompileExpr::visit (HIR::IfExpr &expr)
void
CompileExpr::visit (HIR::InlineAsm &expr)
{
- translated = CompileAsm::asm_build_expr (expr);
+ CompileAsm a (ctx);
+ a.visit (expr);
// translated = build_asm_expr (0, NULL_TREE, NULL_TREE, NULL_TREE, NULL_TREE,
// NULL_TREE, true, true);
// CompileAsm::asm_build_expr (expr);