## 🎉 完了項目 - ✅ plugin_box_legacy.rs削除(7.7KB、参照ゼロ確認済み) - ✅ REMOVEDコメント整理(encode.rs簡潔化) - ✅ venv削除(143MB節約、.gitignoreは既存) - ✅ llvm_legacyスタブ化(8KB、compile_error!による安全化) ## 🏆 成果 - **リポジトリサイズ改善**: 151MB削減 - **コード整理**: レガシーコード安全にアーカイブ - **プラグインファースト**: StrictPluginFirst継続動作 ## ✅ 検証完了 - cargo build --release --features llvm (警告のみ、エラーなし) - LLVMハーネス実行: print出力正常 - プラグイン動作: StringBox等正常動作 codex先生の戦略に従った安全な段階的削除を実行 Co-Authored-By: codex <noreply@anthropic.com>
29 lines
673 B
Rust
29 lines
673 B
Rust
use crate::box_trait::{IntegerBox, NyashBox};
|
|
use crate::mir::function::MirModule;
|
|
use std::collections::HashMap;
|
|
|
|
pub struct LLVMCompiler {
|
|
values: HashMap<crate::mir::ValueId, Box<dyn NyashBox>>,
|
|
}
|
|
|
|
impl LLVMCompiler {
|
|
pub fn new() -> Result<Self, String> {
|
|
Ok(Self {
|
|
values: HashMap::new(),
|
|
})
|
|
}
|
|
|
|
pub fn compile_module(&self, _mir: &MirModule, _out: &str) -> Result<(), String> {
|
|
// Mock: pretend emitted
|
|
Ok(())
|
|
}
|
|
|
|
pub fn compile_and_execute(
|
|
&mut self,
|
|
_mir: &MirModule,
|
|
_out: &str,
|
|
) -> Result<Box<dyn NyashBox>, String> {
|
|
Ok(Box::new(IntegerBox::new(0)))
|
|
}
|
|
}
|