On Thu, Feb 22, 2018 at 4:40 PM Rafael Avila de Espindola via cfe-commits <
cfe-commits@lists.llvm.org> wrote:

> Eric Christopher via Phabricator <revi...@reviews.llvm.org> writes:
>
> > echristo added inline comments.
> >
> >
> > ================
> > Comment at: lib/CodeGen/CodeGenModule.h:728
> > +  /// This must be called after dllimport/dllexport is set.
> > +  /// FIXME: should this set dllimport/dllexport instead?
> >    void setGVProperties(llvm::GlobalValue *GV, const NamedDecl *D) const;
> > ----------------
> > Agreed? Maybe? Should the rest of the properties from above each call be
> set in this function?
> >
> > Since you've got the decl it might be best to get as many of them in one
> place as possible?
>
> Very likely yes.
>
> One think I have locally is a very ugly patch that sets dso_local all
> over the place in clang until every GV in coff is dso_local or
> dllimport.
>
> My idea is to cleanup it bit by bit once the initial patch (this one) is
> in.
>
> I can try moving dllimport/dllexport setting to setGVProperties as the
> first followup patch if you agree.
>
>
SGTM. I'll ack the patch.

-eric
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D43514: ... Rafael Avila de Espindola via Phabricator via cfe-commits
    • [PATCH] D43... Eric Christopher via Phabricator via cfe-commits
    • [PATCH] D43... Rafael Avila de Espindola via Phabricator via cfe-commits
    • [PATCH] D43... Eric Christopher via Phabricator via cfe-commits
      • Re: [PA... Rafael Avila de Espindola via cfe-commits
        • Re:... Eric Christopher via cfe-commits
    • [PATCH] D43... Rafael Avila de Espindola via Phabricator via cfe-commits

Reply via email to