This is an archive of the discontinued LLVM Phabricator instance.

Redirect DataLayout from TargetMachine to Module in SjLjEHPrepare
ClosedPublic

Authored by mehdi_amini on Jul 7 2015, 12:48 PM.

Details

Summary

This change is part of a series of commits dedicated to have a single
DataLayout during compilation by using always the one owned by the
module.

Diff Detail

Event Timeline

mehdi_amini retitled this revision from to Redirect DataLayout from TargetMachine to Module in SjLjEHPrepare.
mehdi_amini added a reviewer: echristo.
mehdi_amini updated this object.
echristo edited edge metadata.Jul 7 2015, 12:49 PM

Can probably remove the use of TM in the constructor?

-eric

mehdi_amini updated this revision to Diff 29222.Jul 7 2015, 4:37 PM
mehdi_amini edited edge metadata.

Remove TM in ctor.

echristo accepted this revision.Jul 7 2015, 5:25 PM
echristo edited edge metadata.

LGTM.

Thanks!

-eric

This revision is now accepted and ready to land.Jul 7 2015, 5:25 PM