This is an archive of the discontinued LLVM Phabricator instance.

[mips] [IAS] Refactor the emitDirectiveModuleOddSPReg() functions. NFC.
ClosedPublic

Authored by tomatabacu on Jun 23 2015, 2:31 AM.

Details

Summary

We can simplify emitDirectiveModuleOddSPReg() by having it print the current OddSPReg information
from MipsABIFlagsSection and doing an updateABIInfo() before such calls.

This prevents us from forgetting to update the STI.FeatureBits, because updateABIInfo() uses those to update the MipsABIFlagsSection object,
and also makes sure we use the update mechanism from MipsABIFlagsSection.

Diff Detail

Event Timeline

tomatabacu updated this revision to Diff 28210.Jun 23 2015, 2:31 AM
tomatabacu retitled this revision from to [mips] [IAS] Refactor the emitDirectiveModuleOddSPReg() functions. NFC..
tomatabacu updated this object.
tomatabacu edited the test plan for this revision. (Show Details)
tomatabacu added a reviewer: dsanders.
tomatabacu added subscribers: mpf, Unknown Object (MLST).
dsanders accepted this revision.Jun 23 2015, 6:47 AM
dsanders edited edge metadata.

LGTM.

I thought for a moment that there was a risk of making '.set' directives permanent but this is impossible because .module must appear before all code/data/directives.

This revision is now accepted and ready to land.Jun 23 2015, 6:47 AM
tomatabacu closed this revision.Jun 25 2015, 3:56 AM