diff options
| author | bors <bors@rust-lang.org> | 2019-12-05 11:23:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-12-05 11:23:26 +0000 |
| commit | 1e2a73867d9c0732c89da8de19d4f18a6e80dcfe (patch) | |
| tree | 7beaee1e6aa73a6372367666c0066d03946f424e /src/librustc_codegen_llvm/llvm | |
| parent | d825e35ee8325146e6c175a4c61bcb645b347d5e (diff) | |
| parent | 85df207ecc3a7b8b7150e2b65c67eec3a23b7c81 (diff) | |
Auto merge of #66952 - 0dvictor:print, r=rkruppe
Use Module::print() instead of a PrintModulePass llvm::Module has a print() method. It is unnecessary to create a pass just for the purpose of printing LLVM IR.
Diffstat (limited to 'src/librustc_codegen_llvm/llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/llvm/ffi.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/llvm/ffi.rs b/src/librustc_codegen_llvm/llvm/ffi.rs index fd31e65c9d3..5362d180d1b 100644 --- a/src/librustc_codegen_llvm/llvm/ffi.rs +++ b/src/librustc_codegen_llvm/llvm/ffi.rs @@ -1727,8 +1727,7 @@ extern "C" { Output: *const c_char, FileType: FileType) -> LLVMRustResult; - pub fn LLVMRustPrintModule(PM: &PassManager<'a>, - M: &'a Module, + pub fn LLVMRustPrintModule(M: &'a Module, Output: *const c_char, Demangle: extern fn(*const c_char, size_t, |
