]>
git.proxmox.com Git - rustc.git/blob - src/test/run-pass-fulldeps/auxiliary/llvm-pass-plugin.rs
3 #![feature(plugin_registrar)]
4 #![feature(rustc_private)]
7 extern crate rustc_plugin
;
9 use rustc_plugin
::Registry
;
12 pub fn plugin_registrar(reg
: &mut Registry
) {
13 // This pass is built in to LLVM.
15 // Normally, we would name a pass that was registered through
16 // C++ static object constructors in the same .so file as the
18 reg
.register_llvm_pass("gvn");