| 93 | } |
| 94 | |
| 95 | std::string TargetModule::get_core_module_str() const { |
| 96 | std::stringstream ss; |
| 97 | ss << "//! generated file by megcc, do not modify\n"; |
| 98 | ss << GenCommonInclude() << "\n"; |
| 99 | ss << "#include <stdio.h>\n"; |
| 100 | ss << "#include <math.h>\n"; |
| 101 | for (auto& kv : m_kern_map) { |
| 102 | ss << kv.second << "\n"; |
| 103 | } |
| 104 | for (auto& kv : m_kern_init_map) { |
| 105 | ss << kv.second << "\n"; |
| 106 | } |
| 107 | return ss.str(); |
| 108 | } |
| 109 | |
| 110 | std::string TargetModule::get_helper_module_str() const { |
| 111 | std::stringstream ss; |
nothing calls this directly
no test coverage detected