[LLVMdev] DWARF not being generated for local variable, though MD looks right(?)

Devang Patel dpatel at apple.com
Mon May 2 14:39:42 PDT 2011


On May 2, 2011, at 1:39 PM, Renato Golin wrote:

> On 2 May 2011 17:36, Devang Patel <dpatel at apple.com> wrote:

> Why does type/variable information depend on line information?

You need line number information to map source code to instructions. Otherwise, you'll have a function and variable info in debug info but a debugger won't know which instructions belong to given function and what's the range of a variable.

-
Devang



More information about the llvm-dev mailing list