File tree Expand file tree Collapse file tree 2 files changed +2
-37
lines changed
branches/try2/src/librustc/lib Expand file tree Collapse file tree 2 files changed +2
-37
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 59645c12098719147ec23b334f29fc1516212ce5
8
+ refs/heads/try2: aae95949329b75c0560278152dffac4bdd41aa33
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
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