This is an archive of the discontinued LLVM Phabricator instance.

[clang][cli] Stop creating '-Wno-stdlibcxx-not-found' in cc1
ClosedPublic

Authored by jansvoboda11 on Feb 19 2021, 2:46 AM.

Details

Summary

This patch stops creating the '-Wno-stdlibcxx-not-found' argument in CompilerInvocation::CreateFromArgs.

The code was added in 2e7ab55e657f (a follow-up to D48297). However, D61963 removes relevant tests and starts explicitly passing '-Wno-stdlibcxx-not-found' to the driver. I think it's fair to assume this is a dead code.

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Feb 19 2021, 2:46 AM
jansvoboda11 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 19 2021, 2:46 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
dexonsmith accepted this revision.Feb 19 2021, 10:28 PM

Agreed; LGTM.

This revision is now accepted and ready to land.Feb 19 2021, 10:28 PM

Agreed; LGTM.

To be more explicit, here's how I confirmed this is dead code: warn_drv_libstdcxx_not_found is the only warning in DiagGroup<"stdlibcxx-not-found"> and it's only used by clang/lib/Driver/ToolChains/Darwin.cpp. It cannot have an effect on -cc1.

This revision was landed with ongoing or failed builds.Feb 22 2021, 12:54 AM
This revision was automatically updated to reflect the committed changes.