Skip to content
Snippets Groups Projects
Commit c73feec5 authored by Sam Yates's avatar Sam Yates Committed by akuesters
Browse files

Add missing namespace qualification in simd printing. (#802)

* Add `::arb::` decoration to `fvm_value_type` and `fvm_index_type` in modcc simd cprinter output.
* Return stream from unwind stack trace printer.

Fixes #801 and also a long standing (but low impact) bug in unwind code.
parent ea2872f6
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ std::ostream& operator<<(std::ostream& out, const backtrace& trace) {
break;
}
}
return out;
}
#if 0
......
......@@ -171,7 +171,7 @@ std::string emit_cpp_source(const Module& module_, const printer_options& opt) {
"static constexpr unsigned simd_width_ = ";
if (!opt.simd.width) {
out << "S::simd_abi::native_width<fvm_value_type>::value;\n";
out << "S::simd_abi::native_width<::arb::fvm_value_type>::value;\n";
}
else {
out << opt.simd.width << ";\n";
......@@ -188,8 +188,8 @@ std::string emit_cpp_source(const Module& module_, const printer_options& opt) {
}
out <<
"using simd_value = S::simd<fvm_value_type, simd_width_, " << abi << ">;\n"
"using simd_index = S::simd<fvm_index_type, simd_width_, " << abi << ">;\n"
"using simd_value = S::simd<::arb::fvm_value_type, simd_width_, " << abi << ">;\n"
"using simd_index = S::simd<::arb::fvm_index_type, simd_width_, " << abi << ">;\n"
"\n";
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment