This is an archive of the discontinued LLVM Phabricator instance.

[mips] Set pointer size to 4 bytes for N32 ABI
ClosedPublic

Authored by atanasyan on Oct 4 2018, 3:38 AM.

Details

Summary

CodePointerSize and CalleeSaveStackSlotSize values are used in DWARF generation. In case of MIPS it's icorrect to check for Triple::isMIPS64() only this function returns true for N32 ABI too.

Now we do not have a method to recognize N32 if it's specified by a comand line option and is not a part of a target triple. So we check for Triple::GNUABIN32 only. It's better than nothing.

Diff Detail

Repository
rL LLVM

Event Timeline

atanasyan created this revision.Oct 4 2018, 3:38 AM
This revision is now accepted and ready to land.Oct 8 2018, 7:57 AM
This revision was automatically updated to reflect the committed changes.