Skip to content

Commit

Permalink
Use c-prefixed string
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Luo committed Jun 8, 2023
1 parent 5725561 commit 7b79cb1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions compiler/rustc_codegen_llvm/src/back/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,11 +901,11 @@ unsafe fn embed_bitcode(
llvm::LLVMSetInitializer(llglobal, llconst);

let section = if is_apple {
"__LLVM,__bitcode"
c"__LLVM,__bitcode"
} else if is_aix {
".ipa"
c".ipa"
} else {
".llvmbc"
c".llvmbc"
};
llvm::LLVMSetSection(llglobal, section.as_ptr().cast());
llvm::LLVMRustSetLinkage(llglobal, llvm::Linkage::PrivateLinkage);
Expand All @@ -919,11 +919,11 @@ unsafe fn embed_bitcode(
);
llvm::LLVMSetInitializer(llglobal, llconst);
let section = if is_apple {
"__LLVM,__cmdline"
c"__LLVM,__cmdline"
} else if is_aix {
".info"
c".info"
} else {
".llvmcmd"
c".llvmcmd"
};
llvm::LLVMSetSection(llglobal, section.as_ptr().cast());
llvm::LLVMRustSetLinkage(llglobal, llvm::Linkage::PrivateLinkage);
Expand Down

0 comments on commit 7b79cb1

Please sign in to comment.