about summary refs log tree commit diff
path: root/src/librustc/session
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2015-04-08 12:52:58 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2015-04-08 14:01:59 -0700
commit0cb937944664f7a52895c87f9007fcdface78a7e (patch)
treee2f903e1ea74da556af4616e19f0218436fa762e /src/librustc/session
parent30e7e6e8b0389d407f8b46ab605a9e3475a851d5 (diff)
downloadrust-0cb937944664f7a52895c87f9007fcdface78a7e.tar.gz
rust-0cb937944664f7a52895c87f9007fcdface78a7e.zip
Allow plugins to register LLVM passes
Diffstat (limited to 'src/librustc/session')
-rw-r--r--src/librustc/session/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs
index 452840310aa..148f484b0ed 100644
--- a/src/librustc/session/mod.rs
+++ b/src/librustc/session/mod.rs
@@ -52,6 +52,7 @@ pub struct Session {
     pub working_dir: PathBuf,
     pub lint_store: RefCell<lint::LintStore>,
     pub lints: RefCell<NodeMap<Vec<(lint::LintId, codemap::Span, String)>>>,
+    pub plugin_llvm_passes: RefCell<Vec<String>>,
     pub crate_types: RefCell<Vec<config::CrateType>>,
     pub crate_metadata: RefCell<Vec<String>>,
     pub features: RefCell<feature_gate::Features>,
@@ -391,6 +392,7 @@ pub fn build_session_(sopts: config::Options,
         working_dir: env::current_dir().unwrap(),
         lint_store: RefCell::new(lint::LintStore::new()),
         lints: RefCell::new(NodeMap()),
+        plugin_llvm_passes: RefCell::new(Vec::new()),
         crate_types: RefCell::new(Vec::new()),
         crate_metadata: RefCell::new(Vec::new()),
         features: RefCell::new(feature_gate::Features::new()),