From 279937812aaf018f9d50bd70d84b369d41a13f4f Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Sat, 30 Nov 2019 14:50:04 +0300 Subject: rustc_plugin: Remove support for plugins adding LLVM passes --- src/librustc_plugin_impl/registry.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/librustc_plugin_impl') diff --git a/src/librustc_plugin_impl/registry.rs b/src/librustc_plugin_impl/registry.rs index 91e6901ff50..fb749050756 100644 --- a/src/librustc_plugin_impl/registry.rs +++ b/src/librustc_plugin_impl/registry.rs @@ -4,8 +4,6 @@ use rustc::lint::LintStore; use rustc::session::Session; use syntax_pos::Span; -use std::borrow::ToOwned; - /// Structure used to register plugins. /// /// A plugin registrar function takes an `&mut Registry` and should call @@ -24,9 +22,6 @@ pub struct Registry<'a> { #[doc(hidden)] pub krate_span: Span, - - #[doc(hidden)] - pub llvm_passes: Vec, } impl<'a> Registry<'a> { @@ -36,16 +31,6 @@ impl<'a> Registry<'a> { sess, lint_store, krate_span, - llvm_passes: vec![], } } - - /// Register an LLVM pass. - /// - /// Registration with LLVM itself is handled through static C++ objects with - /// constructors. This method simply adds a name to the list of passes to - /// execute. - pub fn register_llvm_pass(&mut self, name: &str) { - self.llvm_passes.push(name.to_owned()); - } } -- cgit 1.4.1-3-g733a5