]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Local testing for build_string and debug()
authorjjasmine <tanghocle456@gmail.com>
Sun, 23 Jun 2024 17:39:12 +0000 (10:39 -0700)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 2 Sep 2024 09:44:55 +0000 (09:44 +0000)
gcc/rust/ChangeLog:

* backend/rust-compile-expr.cc (CompileExpr::visit):
Local testing for build_string and debug()

gcc/rust/backend/rust-compile-expr.cc

index 2d5819419fbb3b75da731a16ce6f1a908680921b..ab10af712c24641683872f11f0bc27acbf252d56 100644 (file)
@@ -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)