This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Remove ThumbTargetMachines. (NFC)
ClosedPublic

Authored by fhahn on May 18 2017, 6:43 AM.

Details

Summary

Thumb code generation is controlled by ARMSubtarget and the concrete
ThumbLETargetMachine and ThumbBETargetMachine are not needed.

Eric Christopher suggested removing the unneeded target machines in
https://reviews.llvm.org/D33287.

I think it still makes sense to keep separate TargetMachines for big and
little endian as we probably do not want to have different endianess for
difference functions in a single compilation unit. The MIPS backend has
two separate TargetMachines for big and little endian as well.

Diff Detail

Event Timeline

fhahn created this revision.May 18 2017, 6:43 AM
echristo accepted this revision.May 23 2017, 12:04 PM

This works for me. Thanks!

-eric

lib/Target/ARM/ARMTargetMachine.cpp
268–270

This seems pretty odd at this point, but it can be a cleanup for a later time.

This revision is now accepted and ready to land.May 23 2017, 12:04 PM
fhahn closed this revision.May 24 2017, 3:19 AM