[llvm-commits] patch: don't emit a directory entry for DW_at_comp_dir

Nick Lewycky nlewycky at google.com
Fri Oct 21 14:11:16 PDT 2011


On 18 October 2011 15:53, Nick Lewycky <nlewycky at google.com> wrote:

> In DWARF, the file table contains indices back into the directory table. As
> an optimization, directory entry zero is assumed to refer to the value in
> DW_at_comp_dir. Don't emit two copies of that string!
>
> Please review!
>

Ping!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20111017/130273.html

I know Eric started looking at this and was hoping it's be possible to do in
a different, cleaner way. I'd be happy to change how it works if anyone has
a proposal. As it stands right now, we assume that a blank directory entry
means "use directory entry zero" which is what GNU as and llvm-mc have
always done. This patch causes us to emit ".file index filename" with no
directory part when the directory is equal to the comp_dir.

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111021/0b25b07d/attachment.html>


More information about the llvm-commits mailing list