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:
9
archive/llvm_legacy/box_types.rs
Normal file
9
archive/llvm_legacy/box_types.rs
Normal 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;
|
||||
11
archive/llvm_legacy/compiler/mod.rs
Normal file
11
archive/llvm_legacy/compiler/mod.rs
Normal 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())
|
||||
}
|
||||
9
archive/llvm_legacy/context.rs
Normal file
9
archive/llvm_legacy/context.rs
Normal 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;
|
||||
24
archive/llvm_legacy/mod.rs
Normal file
24
archive/llvm_legacy/mod.rs
Normal 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())
|
||||
}
|
||||
Reference in New Issue
Block a user