object
object copied to clipboard
`Object::exports` should return some kind of iterator
Object::exports should return some kind of iterator.
Currently It requires allocating a Vec, which should be unnecessary...
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).