Refiling rust-lang/rfcs#644 here.
rustc's LLVM bindings are a bit of a hodgepodge. Some abstractions have been added on top of the C bindings, but not consistently. It would be nice to do some serious cleanup here so that rustc is using only safe, high-level bindings.
cc #52461
Refiling rust-lang/rfcs#644 here.
cc #52461