[LLVMdev] clang doesn't set code column in debug info records

Yaron Keren yaron.keren at gmail.com
Sat Jan 25 01:19:48 PST 2014

Hi Yuri,

You need to set

  clang::CodeGenOptions.DebugColumnInfo = 1;

it's not enabled by default.


2014-01-25 Yuri <yuri at rawbw.com>

> This is maybe a minor issue, but it is obvious when one looks at debug
> info produced by clang. Such records are normally created by the code like
> this:
> Instruction->setDebugLoc(llvm::DebugLoc::get(Line, Column, Scope));
> and it appears that Column is always zero.
> Yuri
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140125/75416a50/attachment.html>

More information about the llvm-dev mailing list