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. Cheers, Rafael _______________________________________________ cfe-commits mailing list email@example.com http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits