Page MenuHomePhabricator

[RISCV] Check the target-abi module flag matches the -target-abi option

Authored by khchen on Jan 15 2020, 6:59 AM.



This is subsequent patch of D72755.
module-target-abi2.ll testcase want to address a problem about TargetABI info in RISCVAsmBackend will not update after getSubtargetImpl create a new subtarget.
so RISCVELFStreamer will get the older TargetABI value from RISCVAsmBackend.

module-target-abi.ll doesn't have this problem because the default TargetABI value is equal to target-abi module flag.

Diff Detail

Event Timeline

khchen created this revision.Jan 15 2020, 6:59 AM
lenary accepted this revision.Jan 20 2020, 8:37 AM

LGTM! Thanks!

This revision is now accepted and ready to land.Jan 20 2020, 8:37 AM
This revision was automatically updated to reflect the committed changes.