We used to not print dylibs referenced by other dylibs in -t mode. This
affected reexports, and with -flat_namespace also just dylibs loaded by
dylibs. Now we print them.
Fixes PR49514.
Differential D103428
[lld/mac] Make -t work correctly with -flat_namespace thakis on May 31 2021, 3:32 PM. Authored by
Details
We used to not print dylibs referenced by other dylibs in -t mode. This Fixes PR49514.
Diff Detail
Unit Tests
Event TimelineComment Actions Hm, could we not just emit the message inside the DylibFile and ObjFile constructors? Also nit: Could we have more detail in the commit message? Referencing bugzilla is a bit inconvenient (plus it could get confusing if more comments are left on the issue.) Finally: There are a bunch of things listed in that task as "interesting things to check", not sure if we want to have more tests for those, but your call
Comment Actions Yes, putting it in the two DylibFile ctors works just as well. It's the same +4 lines, and printing things from a ctor feels a bit weird, so I put it where I put it but if you want I can change it.
Sure, adding more details.
Yes, I should add more tests for some of these things, but I think they already work :) Comment Actions I'd prefer we put in in the ctors: I agree that having side-effects in a constructor is a bit weird, but OTOH it means that we'll never have to worry about new instantiation sites forgetting to add this logging. Comment Actions I just realized I landed this without addressing this comment. Sorry, that wasn't intentional, I just forgot. I'll fix it up in a follow-up commit. |
nit: align with -NEXT: lines