(
cx: &CodegenCx<'ll, 'tcx>,
def_id: DefId,
)
| 184 | } |
| 185 | |
| 186 | pub(crate) fn codegen_static_initializer<'ll, 'tcx>( |
| 187 | cx: &CodegenCx<'ll, 'tcx>, |
| 188 | def_id: DefId, |
| 189 | ) -> Result<(&'ll Value, &'tcx Allocation), ErrorHandled> { |
| 190 | let alloc = cx.tcx.eval_static_initializer(def_id)?; |
| 191 | Ok((const_alloc_to_llvm(cx, alloc), alloc)) |
| 192 | } |
| 193 | |
| 194 | pub(crate) fn linkage_to_llvm(linkage: Linkage) -> llvm::Linkage { |
| 195 | match linkage { |
no test coverage detected