mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-09 15:43:25 +00:00
Merge pull request #2141 from whitequark/cxxrtl-cxx11
cxxrtl: various compiler compatibility fixes
This commit is contained in:
commit
8a4841d786
3 changed files with 10 additions and 8 deletions
|
@ -1922,8 +1922,9 @@ struct CxxrtlWorker {
|
|||
if (top_module != nullptr && debug_info) {
|
||||
f << "cxxrtl_toplevel " << design_ns << "_create() {\n";
|
||||
inc_indent();
|
||||
std::string top_type = design_ns + "::" + mangle(top_module);
|
||||
f << indent << "return new _cxxrtl_toplevel { ";
|
||||
f << "std::make_unique<" << design_ns << "::" << mangle(top_module) << ">()";
|
||||
f << "std::unique_ptr<" << top_type << ">(new " + top_type + ")";
|
||||
f << " };\n";
|
||||
dec_indent();
|
||||
f << "}\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue