1
Fork 0

compiler: replace cstr macro with c str literals in compiler and few other c str replacements

This commit is contained in:
klensy 2023-12-03 14:02:31 +03:00
parent 71940e0a8a
commit 26e69a8816
14 changed files with 42 additions and 71 deletions

View file

@ -146,7 +146,7 @@ fn create_wrapper_function(
}
llvm::LLVMRustSetVisibility(callee, llvm::Visibility::Hidden);
let llbb = llvm::LLVMAppendBasicBlockInContext(llcx, llfn, "entry\0".as_ptr().cast());
let llbb = llvm::LLVMAppendBasicBlockInContext(llcx, llfn, c"entry".as_ptr().cast());
let llbuilder = llvm::LLVMCreateBuilderInContext(llcx);
llvm::LLVMPositionBuilderAtEnd(llbuilder, llbb);