From 97cf461b8f4c0ed0de8fdc1c441b904ddb8b3194 Mon Sep 17 00:00:00 2001 From: Axel Cohen Date: Fri, 19 Nov 2021 17:01:41 +0100 Subject: Add a codegen option to allow loading LLVM pass plugins --- compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/rustc_codegen_llvm/src/llvm') diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index d9a6723fe27..a225d59dd40 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -2304,6 +2304,8 @@ extern "C" { end_callback: SelfProfileAfterPassCallback, ExtraPasses: *const c_char, ExtraPassesLen: size_t, + PassPlugins: *const c_char, + PassPluginsLen: size_t, ) -> LLVMRustResult; pub fn LLVMRustPrintModule( M: &'a Module, -- cgit 1.4.1-3-g733a5