Skip to content

Commit 73ab163

Browse files
committed
---
yaml --- r: 109839 b: refs/heads/master c: aae9594 h: refs/heads/master i: 109837: 8380550 109835: 3bc25ec 109831: 53f98e6 109823: 0444d12 v: v3
1 parent 8811a67 commit 73ab163

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 59645c12098719147ec23b334f29fc1516212ce5
2+
refs/heads/master: aae95949329b75c0560278152dffac4bdd41aa33
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
55
refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d

trunk/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)