| 80 | } |
| 81 | |
| 82 | Function* get_function(const CompilationUnit& compilation_unit) { |
| 83 | auto functions = compilation_unit.get_functions(); |
| 84 | if (functions.empty()) { |
| 85 | BOLT_FAIL("torch compilation unit does not contain a functions"); |
| 86 | } |
| 87 | |
| 88 | return functions.back(); |
| 89 | } |
| 90 | } // namespace bytedance::bolt::torch |
no test coverage detected