File tree Expand file tree Collapse file tree 2 files changed +2
-37
lines changed Expand file tree Collapse file tree 2 files changed +2
-37
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 59645c12098719147ec23b334f29fc1516212ce5
2
+ refs/heads/master: aae95949329b75c0560278152dffac4bdd41aa33
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
5
5
refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
Original file line number Diff line number Diff line change 10
10
11
11
#![ allow( non_uppercase_pattern_statics) ]
12
12
#![ allow( non_camel_case_types) ]
13
+ #![ allow( dead_code) ]
13
14
14
15
use std:: c_str:: ToCStr ;
15
16
use std:: cell:: RefCell ;
@@ -1911,42 +1912,6 @@ pub fn mk_target_data(string_rep: &str) -> TargetData {
1911
1912
}
1912
1913
}
1913
1914
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
-
1950
1915
/* Memory-managed interface to object files. */
1951
1916
1952
1917
pub struct ObjectFile {
You can’t perform that action at this time.
0 commit comments