Skip to content

Commit 1e79711

Browse files
committed
---
yaml --- r: 150487 b: refs/heads/try2 c: aae9594 h: refs/heads/master i: 150485: 9311b9e 150483: d440be0 150479: c99cbbd v: v3
1 parent 992d98f commit 1e79711

File tree

2 files changed

+2
-37
lines changed

2 files changed

+2
-37
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 59645c12098719147ec23b334f29fc1516212ce5
8+
refs/heads/try2: aae95949329b75c0560278152dffac4bdd41aa33
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/lib/llvm.rs

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#![allow(non_uppercase_pattern_statics)]
1212
#![allow(non_camel_case_types)]
13+
#![allow(dead_code)]
1314

1415
use std::c_str::ToCStr;
1516
use std::cell::RefCell;
@@ -1911,42 +1912,6 @@ pub fn mk_target_data(string_rep: &str) -> TargetData {
19111912
}
19121913
}
19131914

1914-
/* Memory-managed interface to pass managers. */
1915-
1916-
pub struct pass_manager_res {
1917-
pub pm: PassManagerRef,
1918-
}
1919-
1920-
impl Drop for pass_manager_res {
1921-
fn drop(&mut self) {
1922-
unsafe {
1923-
llvm::LLVMDisposePassManager(self.pm);
1924-
}
1925-
}
1926-
}
1927-
1928-
pub fn pass_manager_res(pm: PassManagerRef) -> pass_manager_res {
1929-
pass_manager_res {
1930-
pm: pm
1931-
}
1932-
}
1933-
1934-
pub struct PassManager {
1935-
pub llpm: PassManagerRef,
1936-
dtor: @pass_manager_res
1937-
}
1938-
1939-
pub fn mk_pass_manager() -> PassManager {
1940-
unsafe {
1941-
let llpm = llvm::LLVMCreatePassManager();
1942-
1943-
PassManager {
1944-
llpm: llpm,
1945-
dtor: @pass_manager_res(llpm)
1946-
}
1947-
}
1948-
}
1949-
19501915
/* Memory-managed interface to object files. */
19511916

19521917
pub struct ObjectFile {

0 commit comments

Comments
 (0)