This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] reject -undefined warning and -undefined suppress with -twolevel_namespace
ClosedPublic

Authored by thakis on Feb 18 2021, 8:26 AM.

Details

Summary

-flat_namespace isn't implemented yet, and neither is -undefined dynamic,
so this makes -undefined pretty pointless in lld/MachO for now. But once
we implement -flat_namespace (which we need to do anyways to get check-llvm
to pass with lld as host linker), the code's already there.

Follow-up to https://reviews.llvm.org/D93263#2491865

Diff Detail

Event Timeline

thakis created this revision.Feb 18 2021, 8:26 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: dang. · View Herald Transcript
thakis requested review of this revision.Feb 18 2021, 8:26 AM
int3 accepted this revision.Feb 18 2021, 1:05 PM

Thanks for the cleanup!

lld/test/MachO/treat-undef-sym.s
25

nit: can we use hyphens instead of underscores so we don't have mixed separators?

This revision is now accepted and ready to land.Feb 18 2021, 1:05 PM

Thanks!

lld/test/MachO/treat-undef-sym.s
25

Sure, done.

(I like having them mixed since it makes it clearer that "-NEXT" is some magic lit suffix while "INVAL_WARNING" is just some arbitrary string.)

Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2021, 10:35 AM