This is an archive of the discontinued LLVM Phabricator instance.

Correctly initialise global blocks on Windows.
ClosedPublic

Authored by theraven on Aug 8 2018, 4:19 AM.

Details

Summary

Windows does not allow globals to be initialised to point to globals in
another DLL. Exported globals may be referenced only from code. Work
around this by creating an initialiser that runs in early library
initialisation and sets the isa pointer.

Diff Detail

Repository
rL LLVM

Event Timeline

theraven created this revision.Aug 8 2018, 4:19 AM
rjmccall accepted this revision.Aug 8 2018, 12:35 PM

Alright, LGTM, at least until we have that backend support you mentioned.

This revision is now accepted and ready to land.Aug 8 2018, 12:35 PM
This revision was automatically updated to reflect the committed changes.