Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6f1c06d

Browse files
committedApr 3, 2014
auto merge of #13244 : cmr/rust/tbaa, r=alexcrichton
2 parents 7bda3df + 46790a7 commit 6f1c06d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+49
-1113
lines changed
 

‎src/librustc/back/abi.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
pub static rc_base_field_refcnt: uint = 0u;
12-
13-
pub static task_field_refcnt: uint = 0u;
14-
15-
pub static task_field_stk: uint = 2u;
16-
17-
pub static task_field_runtime_sp: uint = 3u;
18-
19-
pub static task_field_rust_sp: uint = 4u;
20-
21-
pub static task_field_gc_alloc_chain: uint = 5u;
22-
23-
pub static task_field_dom: uint = 6u;
24-
25-
pub static n_visible_task_fields: uint = 7u;
26-
27-
pub static dom_field_interrupt_flag: uint = 1u;
28-
29-
pub static frame_glue_fns_field_mark: uint = 0u;
30-
31-
pub static frame_glue_fns_field_drop: uint = 1u;
32-
33-
pub static frame_glue_fns_field_reloc: uint = 2u;
34-
3511
pub static box_field_refcnt: uint = 0u;
3612
pub static box_field_tydesc: uint = 1u;
37-
pub static box_field_prev: uint = 2u;
38-
pub static box_field_next: uint = 3u;
3913
pub static box_field_body: uint = 4u;
4014

41-
pub static general_code_alignment: uint = 16u;
42-
43-
pub static tydesc_field_size: uint = 0u;
44-
pub static tydesc_field_align: uint = 1u;
45-
pub static tydesc_field_drop_glue: uint = 2u;
4615
pub static tydesc_field_visit_glue: uint = 3u;
47-
pub static tydesc_field_name_offset: uint = 4u;
48-
pub static n_tydesc_fields: uint = 5u;
4916

5017
// The two halves of a closure: code and environment.
5118
pub static fn_field_code: uint = 0u;
@@ -64,5 +31,3 @@ pub static vec_elt_elems: uint = 2u;
6431

6532
pub static slice_elt_base: uint = 0u;
6633
pub static slice_elt_len: uint = 1u;
67-
68-
pub static abi_version: uint = 1u;

‎src/librustc/back/archive.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -87,29 +87,6 @@ impl<'a> Archive<'a> {
8787
Archive { sess: sess, dst: dst }
8888
}
8989

90-
/// Read a file in the archive
91-
pub fn read(&self, file: &str) -> Vec<u8> {
92-
// Apparently if "ar p" is used on windows, it generates a corrupt file
93-
// which has bad headers and LLVM will immediately choke on it
94-
if cfg!(windows) {
95-
let loc = TempDir::new("rsar").unwrap();
96-
let archive = os::make_absolute(&self.dst);
97-
run_ar(self.sess, "x", Some(loc.path()), [&archive,
98-
&Path::new(file)]);
99-
let result: Vec<u8> =
100-
fs::File::open(&loc.path().join(file)).read_to_end()
101-
.unwrap()
102-
.move_iter()
103-
.collect();
104-
result
105-
} else {
106-
run_ar(self.sess,
107-
"p",
108-
None,
109-
[&self.dst, &Path::new(file)]).output.move_iter().collect()
110-
}
111-
}
112-
11390
/// Adds all of the contents of a native library to this archive. This will
11491
/// search in the relevant locations for a library named `name`.
11592
pub fn add_native_library(&mut self, name: &str) -> io::IoResult<()> {

0 commit comments

Comments
 (0)
Please sign in to comment.