diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-11-30 14:50:04 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-12-01 20:53:25 +0300 |
| commit | 279937812aaf018f9d50bd70d84b369d41a13f4f (patch) | |
| tree | d5ce0d781883a15cf96f9e46a8490a7c77cda9bc /src/librustc_plugin_impl | |
| parent | cf1ffb0355e608453acc9803d6f317c16011d517 (diff) | |
| download | rust-279937812aaf018f9d50bd70d84b369d41a13f4f.tar.gz rust-279937812aaf018f9d50bd70d84b369d41a13f4f.zip | |
rustc_plugin: Remove support for plugins adding LLVM passes
Diffstat (limited to 'src/librustc_plugin_impl')
| -rw-r--r-- | src/librustc_plugin_impl/registry.rs | 15 |
1 files changed, 0 insertions, 15 deletions
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<String>, } 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()); - } } |
