This is an archive of the discontinued LLVM Phabricator instance.

Don't delete the module you're inspecting
ClosedPublic

Authored by beanz on Jun 2 2021, 11:53 AM.

Details

Summary

Prior to this patch when you used clang -module-file-info clang would delete the module on completion because the module was treated as an output file.

This fixes the issue so you don't need to invoke cc1 directly to get module file information.

Diff Detail

Event Timeline

beanz requested review of this revision.Jun 2 2021, 11:53 AM
beanz created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2021, 11:53 AM

Can you create a new test for clang Driver instead of rewrite the cc1 test?

beanz updated this revision to Diff 349350.Jun 2 2021, 12:26 PM

Breaking out a separate test case.

This revision is now accepted and ready to land.Jun 2 2021, 1:10 PM
phosek accepted this revision.Jun 2 2021, 1:35 PM

LGTM

This revision was landed with ongoing or failed builds.Jun 3 2021, 11:00 AM
This revision was automatically updated to reflect the committed changes.