Skip to content

Commit 89df677

Browse files
committed
initial codegen
1 parent 81cc064 commit 89df677

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/librustc_codegen_llvm/base.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ use rustc_middle::mir::mono::{Linkage, Visibility};
3636
use rustc_middle::ty::TyCtxt;
3737
use rustc_session::config::DebugInfo;
3838
use rustc_span::symbol::Symbol;
39+
use log::debug;
3940

4041
use std::ffi::CString;
4142
use std::time::Instant;
@@ -75,6 +76,18 @@ pub fn write_compressed_metadata<'tcx>(
7576
}
7677
}
7778

79+
pub fn write_idata_sections<'tcx>(
80+
_tcx: TyCtxt<'tcx>,
81+
raw_dylibs: &[RawDylibImports],
82+
_llvm_module: &mut ModuleLlvm,
83+
){
84+
for raw_dylib in raw_dylibs {
85+
debug!("linking raw dylib - {:?}", raw_dylib);
86+
//TODO: emit.
87+
}
88+
89+
}
90+
7891
pub struct ValueIter<'ll> {
7992
cur: Option<&'ll Value>,
8093
step: unsafe extern "C" fn(&'ll Value) -> Option<&'ll Value>,

src/librustc_codegen_ssa/back/link.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,8 +1703,7 @@ fn add_local_native_libraries(
17031703
NativeLibKind::StaticNoBundle => cmd.link_staticlib(name),
17041704
NativeLibKind::StaticBundle => cmd.link_whole_staticlib(name, &search_path),
17051705
NativeLibKind::RawDylib => {
1706-
// FIXME(#58713): Proper handling for raw dylibs.
1707-
bug!("raw_dylib feature not yet implemented");
1706+
// we shouldn't need to do anything here, code has been generated.
17081707
}
17091708
}
17101709
}

0 commit comments

Comments
 (0)