File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
crates/rustc_codegen_spirv/src Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -269,15 +269,7 @@ impl MetadataLoader for SpirvMetadataLoader {
269
269
}
270
270
271
271
fn get_dylib_metadata ( & self , target : & Target , path : & Path ) -> Result < MetadataRef , String > {
272
- // HACK(eddyb) this is needed to allow metadata loading for proc macros
273
- // (compiled as host dylibs); perhaps it'd be better to use the `object`
274
- // crate, like `rustc_codegen_cranelift` does.
275
- // NOTE(eddyb) while both `::new()` and `.metadata_loader()` call `Box::new`,
276
- // they only do so with ZST values, and so we don't pointlessly allocate.
277
- extern crate rustc_codegen_llvm;
278
- rustc_codegen_llvm:: LlvmCodegenBackend :: new ( )
279
- . metadata_loader ( )
280
- . get_dylib_metadata ( target, path)
272
+ rustc_codegen_ssa:: back:: metadata:: DefaultMetadataLoader . get_dylib_metadata ( target, path)
281
273
}
282
274
}
283
275
You can’t perform that action at this time.
0 commit comments