2 ms·
Not super familiar with Rust, but will this have any impact on debugging? I imagine LLVM is generating debug symbols from what it receives (which would be fair
by kevindqc 10y ago
Not super familiar with Rust, but will this have any impact on debugging?
I imagine LLVM is generating debug symbols from what it receives (which would be fairly representative of the original program).
Now with this extra step, won't LLVM generate debugging symbols for the MIR, which doesn't really map well to the original code (ie: LLVM won't know all those gotos were originally a loop)?
- steveklabnik 10y agoMIR keeps track of where in the original source it was generated, so you still get good debugging output.
- kevindqc 10y agonice! thanks :)
- pcwalton 10y agoDebug information is propagated down from the HIR through the MIR and then down to LLVM IR, just as LLVM propagates debug info down through LLVM IR to SelectionDAG and then to MachineInstrs.