This is an archive of the discontinued LLVM Phabricator instance.

[Driver] [Darwin] Fix linking libclang_rt.profile_*sim.a
ClosedPublic

Authored by beanz on Mar 7 2016, 4:32 PM.

Details

Summary

isTarget*() calls are order-dependent. This is because iOS Sim *is* iOS. This means checks for the simulator version of the platform must always be ahead of checks for the embedded platform.

Diff Detail

Repository
rL LLVM

Event Timeline

beanz updated this revision to Diff 50008.Mar 7 2016, 4:32 PM
beanz retitled this revision from to [Driver] [Darwin] Fix linking libclang_rt.profile_*sim.a.
beanz updated this object.
beanz added reviewers: zaks.anna, bogner.
beanz added a subscriber: cfe-commits.
zaks.anna edited edge metadata.Mar 7 2016, 5:32 PM

You should be able to use the switch like in Darwin::getOSLibraryNameSuffix(), right? That's much better.

beanz updated this revision to Diff 50055.Mar 8 2016, 10:47 AM
beanz edited edge metadata.

Updates based on Anna's polite and restrained feedback that didn't include the appropriate comment "Why don't you fix your TODO?" (I did fix it this time).

zaks.anna accepted this revision.Mar 15 2016, 11:09 AM
zaks.anna edited edge metadata.
This revision is now accepted and ready to land.Mar 15 2016, 11:09 AM
This revision was automatically updated to reflect the committed changes.