]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Local testing for build_string and debug()
authorjjasmine <tanghocle456@gmail.com>
Sun, 23 Jun 2024 17:39:12 +0000 (10:39 -0700)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 19 Mar 2025 14:32:05 +0000 (15:32 +0100)
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 e23c691d1dbc5b96dd9e896aeeeae65dd35ccb22..7c7bc225e7e9843e26291c0fc24402a169f612d0 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)