[llvm] r270596 - [profile] Fix runtime hook linkage bug for COFF
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Wed May 25 09:40:25 PDT 2016
Ok sounds good.
David
On Wed, May 25, 2016 at 9:38 AM, Reid Kleckner <rnk at google.com> wrote:
> On Wed, May 25, 2016 at 9:32 AM, Xinliang David Li <davidxl at google.com>
> wrote:
> > On Wed, May 25, 2016 at 9:29 AM, Reid Kleckner <rnk at google.com> wrote:
> >>
> >> + if (Triple(M->getTargetTriple()).isOSBinFormatCOFF())
> >> + User->setComdat(M->getOrInsertComdat(User->getName()));
> >>
> >> I think this should really be 'if (!Triple(...).isOSBinFormatMachO())
> >> ...->setComdat...', i.e. we should always set the comdat if the
> >> platform supports it.
> >
> > Is there a more generic query for that ?
>
> Not yet, but we should probably just hoist this method from clang up
> to the triple:
> bool CodeGenModule::supportsCOMDAT() const {
> return !getTriple().isOSBinFormatMachO();
> }
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160525/6ad0c3b7/attachment.html>
More information about the llvm-commits
mailing list