This is an archive of the discontinued LLVM Phabricator instance.

[GlobalMerge] Allow merging of dllexported variables
ClosedPublic

Authored by mstorsjo on Feb 12 2018, 7:05 AM.

Details

Summary

If merging them, the dllexport attribute needs to be brought along to the new GlobalAlias.

This is a follow-up to D42127 (which just turned off merging of dllexported variables). Handling it properly turned out to be very straightforward after all. I hadn't noticed before that GlobalAlias handily was a GlobalValue subclass - otherwise this would have end up as a much larger change.

Diff Detail

Event Timeline

mstorsjo created this revision.Feb 12 2018, 7:05 AM
compnerd accepted this revision.Feb 12 2018, 10:56 AM
This revision is now accepted and ready to land.Feb 12 2018, 10:56 AM
This revision was automatically updated to reflect the committed changes.