This is an archive of the discontinued LLVM Phabricator instance.

[llvm-install-name-tool] Validate -id value early
ClosedPublic

Authored by alexander-shaposhnikov on Sep 17 2020, 1:39 PM.

Details

Summary

The code which validates the value of -id is moved into the function parseInstallNameToolOptions.

Test plan: make check-all

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
alexander-shaposhnikov requested review of this revision.Sep 17 2020, 1:39 PM
rupprecht accepted this revision.Sep 17 2020, 4:12 PM

Looks like llvm/test/tools/llvm-objcopy/MachO/install-name-tool-id.test covers this, so LGTM

This revision is now accepted and ready to land.Sep 17 2020, 4:12 PM
jhenderson accepted this revision.Sep 18 2020, 1:04 AM

I guess if you wanted to add explicit testing that the behaviour happens regardless of the presence of specific load commands, that would be possible, using a minimal Mach-O file, but I don't mind if you don't want to. LGTM, if you don't.

This revision was landed with ongoing or failed builds.Sep 18 2020, 6:03 PM
This revision was automatically updated to reflect the committed changes.