Skip to content

Commit 7b79cb1

Browse files
author
Kai Luo
committed
Use c-prefixed string
1 parent 5725561 commit 7b79cb1

File tree

1 file changed

+6
-6
lines changed
  • compiler/rustc_codegen_llvm/src/back

1 file changed

+6
-6
lines changed

compiler/rustc_codegen_llvm/src/back/write.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -901,11 +901,11 @@ unsafe fn embed_bitcode(
901901
llvm::LLVMSetInitializer(llglobal, llconst);
902902

903903
let section = if is_apple {
904-
"__LLVM,__bitcode"
904+
c"__LLVM,__bitcode"
905905
} else if is_aix {
906-
".ipa"
906+
c".ipa"
907907
} else {
908-
".llvmbc"
908+
c".llvmbc"
909909
};
910910
llvm::LLVMSetSection(llglobal, section.as_ptr().cast());
911911
llvm::LLVMRustSetLinkage(llglobal, llvm::Linkage::PrivateLinkage);
@@ -919,11 +919,11 @@ unsafe fn embed_bitcode(
919919
);
920920
llvm::LLVMSetInitializer(llglobal, llconst);
921921
let section = if is_apple {
922-
"__LLVM,__cmdline"
922+
c"__LLVM,__cmdline"
923923
} else if is_aix {
924-
".info"
924+
c".info"
925925
} else {
926-
".llvmcmd"
926+
c".llvmcmd"
927927
};
928928
llvm::LLVMSetSection(llglobal, section.as_ptr().cast());
929929
llvm::LLVMRustSetLinkage(llglobal, llvm::Linkage::PrivateLinkage);

0 commit comments

Comments
 (0)