[llvm-dev] get debug info after optimization

Adrian Prantl via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 3 08:51:25 PST 2016


> On Mar 3, 2016, at 8:40 AM, Mohammad Norouzi via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Is it possible to get debug information after optimization? for example, source code line numbers of instructions in an ir that is optimized by O2?

Absolutely. In textual IR, have a look at the !dbg annotations on the instructions. Let me know if you have any more specific questions.

-- adrian


More information about the llvm-dev mailing list