3 #![feature(plugin_registrar)]
4 #![feature(rustc_private)]
7 extern crate rustc_driver;
9 use rustc_driver::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");