refactor: レガシーコード大掃除完了!ChatGPT効率化のため

 削除完了(約700行のレガシー削除)
- src/jit_stub.rs 完全削除(134行の何もしないスタブ)
- src/backend/llvm_legacy/ アーカイブ化(壊れたLLVMバックエンド)
- vm-legacy feature全削除(5ファイルの混乱する二重パス)
- コメントアウトされたインタープリター削除
- JIT関連の巨大コメントブロック削除(350行以上)

 ChatGPTへの効果
- 完璧主義による掃除タイム削減
- 本質的な実装に集中可能
- 混乱する二重パスの排除

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Selfhosting Dev
2025-09-24 21:57:12 +09:00
parent c0978634d9
commit e5f6d51b3c
11 changed files with 27 additions and 717 deletions

View File

@ -0,0 +1,9 @@
//! Deprecated LLVM Legacy Box Types
//! Archived at: docs/archive/backends/llvm-inkwell-legacy/
#[cfg(feature = "llvm-inkwell-legacy")]
compile_error!("LLVM Inkwell Legacy backend deprecated. Use Python LLVM harness.");
// Stub exports for compatibility
pub struct BoxType;
pub struct LegacyBoxImpl;

View File

@ -0,0 +1,11 @@
//! Deprecated LLVM Legacy Compiler
//! Archived at: docs/archive/backends/llvm-inkwell-legacy/
#[cfg(feature = "llvm-inkwell-legacy")]
compile_error!("LLVM Inkwell Legacy backend deprecated. Use Python LLVM harness.");
// Stub exports for compatibility
pub struct LegacyCompiler;
pub fn compile_mir(_mir: &str) -> Result<(), String> {
Err("LLVM Legacy compiler deprecated. Use Python LLVM harness.".to_string())
}

View File

@ -0,0 +1,9 @@
//! Deprecated LLVM Legacy Context
//! Archived at: docs/archive/backends/llvm-inkwell-legacy/
#[cfg(feature = "llvm-inkwell-legacy")]
compile_error!("LLVM Inkwell Legacy backend deprecated. Use Python LLVM harness.");
// Stub exports for compatibility
pub struct LegacyContext;
pub struct LegacyModule;

View File

@ -0,0 +1,24 @@
//! LLVM Legacy Backend (Deprecated)
//!
//! This module has been archived and is no longer supported.
//! Please use the Python LLVM harness instead.
#[cfg(feature = "llvm-inkwell-legacy")]
compile_error!(
"LLVM Inkwell Legacy backend is no longer supported. \
Please use the Python LLVM harness with --backend llvm or NYASH_LLVM_USE_HARNESS=1. \
Legacy code archived at: docs/archive/backends/llvm-inkwell-legacy/"
);
// Stub exports for compilation compatibility
pub mod box_types;
pub mod compiler;
pub mod context;
pub fn compile_and_execute(_program: &str) -> Result<(), String> {
Err("LLVM Legacy backend deprecated. Use Python LLVM harness.".to_string())
}
pub fn compile_to_object(_program: &str) -> Result<Vec<u8>, String> {
Err("LLVM Legacy backend deprecated. Use Python LLVM harness.".to_string())
}