This is an archive of the discontinued LLVM Phabricator instance.

[mips] Fix inconsistent .cprestore behaviour between direct object emission and assembling.
ClosedPublic

Authored by dsanders on Apr 29 2016, 9:21 AM.

Details

Summary

Direct object emission has an initialization order problem where an
InitMCObjectFile is called after MipsTargetELFStreamer determines whether
PIC is enabled by default or not. There doesn't seem to be point that
initializes all cases so split the responsibility between
MipsTargetELFStreamer and MipsAsmPrinter.

Diff Detail

Event Timeline

dsanders updated this revision to Diff 55612.Apr 29 2016, 9:21 AM
dsanders retitled this revision from to [mips] Fix inconsistent .cprestore behaviour between direct object emission and assembling..
dsanders updated this object.
dsanders added a reviewer: sdardis.
dsanders added a subscriber: llvm-commits.
sdardis accepted this revision.May 4 2016, 8:27 AM
sdardis edited edge metadata.

LGTM.

This revision is now accepted and ready to land.May 4 2016, 8:27 AM
dsanders closed this revision.May 6 2016, 7:43 AM