This is an archive of the discontinued LLVM Phabricator instance.

[Hexagon] Enable init_arrays when target is linux-musl
ClosedPublic

Authored by sidneym on Mar 12 2020, 10:23 AM.

Details

Summary

linux/musl will use init arrays by default.

Diff Detail

Event Timeline

sidneym created this revision.Mar 12 2020, 10:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2020, 10:23 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
bcain added inline comments.Mar 12 2020, 10:57 AM
clang/lib/Driver/ToolChains/Hexagon.cpp
548

The ternary is unnecessary.

bool UseInitArrayDefault = getTriple().isMusl();
sidneym updated this revision to Diff 249999.Mar 12 2020, 11:45 AM

Drop ternary.

sidneym marked an inline comment as done.Mar 12 2020, 11:46 AM
kparzysz accepted this revision.Mar 12 2020, 11:57 AM
This revision is now accepted and ready to land.Mar 12 2020, 11:57 AM
This revision was automatically updated to reflect the committed changes.