[llvm-dev] debug info in the backend

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 9 11:04:02 PST 2016


On 9 March 2016 at 11:01, Mohammad Norouzi via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Is it possible to use debug info in the back end? for example can we get the
> source code line for MachineInstructions?

There's MachineInstr::getDebugLoc, though as usual you can't rely on
every instruction having a value, or it being correct if they do.

Cheers.

Tim.


More information about the llvm-dev mailing list