diff options
author | jjasmine <tanghocle456@gmail.com> | 2024-06-23 10:39:12 -0700 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-09-02 09:44:55 +0000 |
commit | 163bd136710516f05bc197fec773e3009edf8319 (patch) | |
tree | 179b982312424259984630e5337bcebde855c2e4 /gcc/rust/backend/rust-compile-expr.cc | |
parent | c3e69be4e6b44974f7eee2977778248723fec72e (diff) | |
download | gcc-163bd136710516f05bc197fec773e3009edf8319.zip gcc-163bd136710516f05bc197fec773e3009edf8319.tar.gz gcc-163bd136710516f05bc197fec773e3009edf8319.tar.bz2 |
Local testing for build_string and debug()
gcc/rust/ChangeLog:
* backend/rust-compile-expr.cc (CompileExpr::visit):
Local testing for build_string and debug()
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.cc')
-rw-r--r-- | gcc/rust/backend/rust-compile-expr.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc index 2d58194..ab10af7 100644 --- a/gcc/rust/backend/rust-compile-expr.cc +++ b/gcc/rust/backend/rust-compile-expr.cc @@ -320,7 +320,10 @@ CompileExpr::visit (HIR::IfExpr &expr) void CompileExpr::visit (HIR::InlineAsm &expr) -{} +{ + tree test_string = build_string(expr.template_strs[0].symbol.size() + 1, expr.template_strs[0].symbol.c_str()); + debug(test_string); +} void CompileExpr::visit (HIR::IfExprConseqElse &expr) |