This is an archive of the discontinued LLVM Phabricator instance.

Move arm-nacl DL description string setting from ctor to setABI.
Needs ReviewPublic

Authored by jvoung on Nov 10 2014, 5:39 PM.

Details

Reviewers
dschuff
Summary

ARMTargetInfo sets the description string from setABI and not the
ctor, so don't do that under the NaClTargetInfo<ARM...> ctor.

Otherwise, the NaClTargetInfo<ARM...> ctor will set the description
string, then CreateTargetInfo will call setABI() and replace the
description string with another one. Move the arm-nacl setting to
one place (setABI). Change the existing test to pass
"-target-abi aapcs-linux", like what the driver would normally do
for NaCl to test this.

Diff Detail

Event Timeline

jvoung updated this revision to Diff 16022.Nov 10 2014, 5:39 PM
jvoung retitled this revision from to Move arm-nacl DL description string setting from ctor to setABI..
jvoung updated this object.
jvoung edited the test plan for this revision. (Show Details)
jvoung added a reviewer: dschuff.
jvoung added a subscriber: Unknown Object (MLST).

So I'm in the middle of figuring out what to do about -target-abi (read, how best to shoot it in the head) so I'd prefer not to add additional users of it. Let me see if I can get this out of clang in the next couple of days, otherwise I guess it's OK for now?

-eric

dschuff edited edge metadata.Nov 11 2014, 9:00 AM

I guess there's not necessarily a need to land this upstream if it's just going to have to change right away. We can land it on our 3.5 branch and adjust it as needed later.

Okay I'll wait and see what happens to -target-abi. Thanks!