This is an archive of the discontinued LLVM Phabricator instance.

[mips] Support -membedded-data and fix a related bug
ClosedPublic

Authored by sdardis on Jul 20 2017, 8:16 AM.

Details

Summary

-membedded-data changes the location of constant data from the .sdata to
the .rodata section. Previously it was (incorrectly) always located in the
.rodata section.

Diff Detail

Repository
rL LLVM

Event Timeline

sdardis created this revision.Jul 20 2017, 8:16 AM
atanasyan accepted this revision.Jul 20 2017, 2:49 PM

LGTM with minor nits.

lib/Target/Mips/MipsTargetObjectFile.cpp
158 ↗(On Diff #107519)

Do we really need this comment? Its meaning is not obvious.

This revision is now accepted and ready to land.Jul 20 2017, 2:49 PM
sdardis marked an inline comment as done.Jul 20 2017, 3:20 PM
sdardis added inline comments.
lib/Target/Mips/MipsTargetObjectFile.cpp
158 ↗(On Diff #107519)

Hm, left over code from development. I'll remove before committing.

sdardis updated this revision to Diff 107651.Jul 21 2017, 4:19 AM
sdardis marked an inline comment as done.

Address review comment.

Feel free to commit the patch.

This revision was automatically updated to reflect the committed changes.