[midend]修复了后端不适配中端全局变量定义的问题

This commit is contained in:
Lixuanwang
2025-08-02 22:06:37 +08:00
parent bfe218be07
commit f879a0f521
2 changed files with 82 additions and 15 deletions

View File

@@ -22,6 +22,10 @@ private:
// 函数级代码生成 (实现新的流水线)
std::string function_gen(Function* func);
// 私有辅助函数,用于根据类型计算其占用的字节数。
unsigned getTypeSizeInBytes(Type* type);
Module* module;
};