object icon indicating copy to clipboard operation
object copied to clipboard

`Object::exports` should return some kind of iterator

Open Ben-Lichtman opened this issue 3 years ago • 1 comments

Object::exports should return some kind of iterator.

Currently It requires allocating a Vec, which should be unnecessary...

Ben-Lichtman avatar Mar 24 '22 22:03 Ben-Lichtman

Changing to an iterator and using a trait for the iterator items would also allow more file format specific information to be exposed. For example, it would be useful to know which ELF exports are for TLS (https://github.com/bjorn3/rustc_codegen_cranelift/pull/1269#issuecomment-1221935414).

philipc avatar Aug 22 '22 07:08 philipc