search for: _zn4foo217_5cb557d30658848ce

Displaying 1 result from an estimated 1 matches for "_zn4foo217_5cb557d30658848ce".

2011 Dec 05
2
[LLVMdev] Generating DWARF information that pretends an outparam is the return value
The Rust compiler defines all functions as returning void, with the first parameter being an outparam of the declared return type, ie. fn foo2() -> int { ret 5; } becomes define void @_ZN4foo217_5cb557d30658848cE(i64*, { i64, { %tydesc*, i1, {} } }*) uwtable { store i64 5, i64* %0 ret void } I'm working on generating debug information for Rust, and I'm currently stumped on how to generate DWARF output via LLVM that will correctly represent this (eg. when exiting from foo2(), I'd like to see...