about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm
diff options
context:
space:
mode:
authorAxel Cohen <axel.cohen@eshard.com>2021-11-19 17:01:41 +0100
committerAxel Cohen <axel.cohen@eshard.com>2021-12-13 10:40:44 +0100
commit97cf461b8f4c0ed0de8fdc1c441b904ddb8b3194 (patch)
tree436752a1ffb01de4304b68790df0579062e3b10d /compiler/rustc_codegen_llvm/src/llvm
parent4a7fb971c939d268abdbd0963cd45d046442f7af (diff)
downloadrust-97cf461b8f4c0ed0de8fdc1c441b904ddb8b3194.tar.gz
rust-97cf461b8f4c0ed0de8fdc1c441b904ddb8b3194.zip
Add a codegen option to allow loading LLVM pass plugins
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs2
1 files changed, 2 insertions, 0 deletions
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,