feat(ir2amd64): 支持函数返回值处理

- 在RET节点中添加对返回值的处理逻辑
- 解析返回值位置并加载到RAX寄存器

refactor(pe_builder): 禁用PE构建器中的日志输出

- 定义空的LOG_INFO宏以禁用调试信息
- 避免在PE构建过程中产生不必要的日志输出
This commit is contained in:
zzy committed 2026-03-20 14:22:33 +08:00
1 parent de6f5d510a
commit a64e1f8330
2 files changed
+9

No files matched your search

+5
View File
@@ -1,5 +1,10 @@
#include <scc_pe_builder.h>
#ifdef LOG_INFO
#undef LOG_INFO
#endif
#define LOG_INFO(...)
#define reserve_align(offset, size) ((offset) + ((size) - 1)) & ~((size) - 1)
void scc_pe_builder_init(scc_pe_builder_t *builder, bool is_64,