This is an archive of the discontinued LLVM Phabricator instance.

[llgo] irgen: always use TargetMachine's data layout
ClosedPublic

Authored by axw on Sep 4 2015, 3:53 AM.

Details

Summary

Another attempt at resolving the runtime assertion
in llgoi due to data layout mismatch between module
and execution engine.

The X86 data layout constant appears to be unnecessary,
and does not match what the execution engine picks.
Using the registered Target, we pick the same data
layout as the execution engine.

While I was in the vicinity, I deleted the last
remnants of PNaCl support.

Diff Detail

Event Timeline

axw updated this revision to Diff 34022.Sep 4 2015, 3:53 AM
axw retitled this revision from to [llgo] irgen: always use TargetMachine's data layout.
axw updated this object.
axw added a reviewer: pcc.
axw added a subscriber: llvm-commits.
pcc accepted this revision.Sep 23 2015, 7:09 AM
pcc edited edge metadata.

lgtm

This revision is now accepted and ready to land.Sep 23 2015, 7:09 AM
axw closed this revision.Sep 24 2015, 11:29 PM