diff options
| author | klensy <klensy@users.noreply.github.com> | 2023-04-02 18:26:48 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2023-04-04 15:12:35 +0300 |
| commit | 076116bb4ca84801e5f513fc7cf280c55f32e8c4 (patch) | |
| tree | 3773892156ad2653f1c6a8b85e3a6d47f7b7bc73 /compiler/rustc_codegen_llvm/src/back/write.rs | |
| parent | c53a9faa6fdcdf8776646e837272ea0a85bf8179 (diff) | |
| download | rust-076116bb4ca84801e5f513fc7cf280c55f32e8c4.tar.gz rust-076116bb4ca84801e5f513fc7cf280c55f32e8c4.zip | |
replace LLVMRustAppendModuleInlineAsm with LLVMAppendModuleInlineAsm, LLVMRustMetadataTypeInContext with LLVMMetadataTypeInContext
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs index fb563f70ed0..7136f750f39 100644 --- a/compiler/rustc_codegen_llvm/src/back/write.rs +++ b/compiler/rustc_codegen_llvm/src/back/write.rs @@ -904,9 +904,9 @@ unsafe fn embed_bitcode( // We need custom section flags, so emit module-level inline assembly. let section_flags = if cgcx.is_pe_coff { "n" } else { "e" }; let asm = create_section_with_flags_asm(".llvmbc", section_flags, bitcode); - llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len()); + llvm::LLVMAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len()); let asm = create_section_with_flags_asm(".llvmcmd", section_flags, cmdline.as_bytes()); - llvm::LLVMRustAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len()); + llvm::LLVMAppendModuleInlineAsm(llmod, asm.as_ptr().cast(), asm.len()); } } |
