Skip to content

Commit aae9594

Browse files
committed
lib: llvm: remove dead code
1 parent 59645c1 commit aae9594

File tree

1 file changed

+1
-36
lines changed

1 file changed

+1
-36
lines changed

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)