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
committerCohenArthur <arthur.cohen@embecosm.com>2024-09-02 09:44:55 +0000
commitf627811f55b3258c3be1813ad71babac262d7387 (patch)
treebfaa15ba12dfa558fcdfb61401e8eaeabf6bc35e /gcc/rust/backend/rust-compile-expr.cc
parent20cd09b19e0a12aad0d09d2395507bda40888f84 (diff)
downloadgcc-f627811f55b3258c3be1813ad71babac262d7387.zip
gcc-f627811f55b3258c3be1813ad71babac262d7387.tar.gz
gcc-f627811f55b3258c3be1813ad71babac262d7387.tar.bz2
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 b84cb4b..9b9bea8 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);