[llvm-commits] new .file directive

Devang Patel dpatel at apple.com
Mon Oct 17 14:45:56 PDT 2011


On Oct 17, 2011, at 2:33 PM, Nick Lewycky wrote:

> It can, but that's missing the point :) Clang emits separate file and directory, the .bc has the separate file and directory, we currently join them again here so that the asm stream can split them again. I'm removing that extra join+split pair.
> 
> Going forward, the split could produce different results. I want to encode "clang -isystem foo/bar" + "#include <x/y.h>" into
>   directory entry: foo/bar
>   file entry: x/y.h
> and there's no way that the resplitting could know that as opposed to "foo" + "bar/x/y.h" and "foo/bar/x" + "y.h".
> 
> Also, this more closely represents what really goes into the debug info, there's a dir entry with the dirname and a file entry which has the filename and the dir entry number.

makes sense!
-
Devang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111017/081169e9/attachment.html>


More information about the llvm-commits mailing list