[PATCH] D17065: Defer CWD in MCContext lookup as late as possible.

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 11 16:31:43 PST 2016


On Thu, Feb 11, 2016 at 4:29 PM Adrian Prantl <aprantl at apple.com> wrote:

> aprantl added a subscriber: aprantl.
> aprantl added a comment.
>
> In http://reviews.llvm.org/D17065#348837, @chandlerc wrote:
>
> > It's used to resolve relative paths encoded elsewhere in dwarf. I think
> all
> >  the clients building an mccontext either have an analog (clang) or can
> >  reasonably directly query their cwd (llc and friends).
>
>
> So during an LTO build you will get the CWD of wherever the linker was
> invoked?
> Shouldn't this get passed in by the frontend as metadata?
>

The MCContext one should just be used for .s files. Anything else should
have explicit paths in the metadata, yes.

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160212/87c0b2fa/attachment.html>


More information about the llvm-commits mailing list