diff options
| author | khei4 <kk.asano.luxy@gmail.com> | 2023-07-19 17:00:06 +0900 |
|---|---|---|
| committer | khei4 <kk.asano.luxy@gmail.com> | 2023-07-20 16:53:06 +0900 |
| commit | c7bf20dfdcbedbba05445035bcabd4f706ba9e42 (patch) | |
| tree | f0fe6b48db91816d00cd54bd0428d1cfcc671eae /compiler/rustc_codegen_llvm/src/llvm/ffi.rs | |
| parent | 4d307c482271ea3575a13b6c04222911e7706189 (diff) | |
| download | rust-c7bf20dfdcbedbba05445035bcabd4f706ba9e42.tar.gz rust-c7bf20dfdcbedbba05445035bcabd4f706ba9e42.zip | |
address feedback from nikic and oli-obk https://github.com/rust-lang/rust/pull/113723/files
use slice memcpy rather than strcpy and write it on stdout use println on failure Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 7cc79d859a3..fd88994c31c 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -1868,10 +1868,10 @@ extern "C" { pub fn LLVMRustGetLastError() -> *const c_char; /// Print the pass timings since static dtors aren't picking them up. - pub fn LLVMRustPrintPassTimings() -> *const c_char; + pub fn LLVMRustPrintPassTimings(size: *const size_t) -> *const c_char; /// Print the statistics since static dtors aren't picking them up. - pub fn LLVMRustPrintStatistics() -> *const c_char; + pub fn LLVMRustPrintStatistics(size: *const size_t) -> *const c_char; pub fn LLVMStructCreateNamed(C: &Context, Name: *const c_char) -> &Type; |
