Page MenuHomePhabricator

clang-driver: use llvm_fast_shutdown
AcceptedPublic

Authored by nhaehnle on Jul 26 2022, 7:53 AM.

Details

Summary

Avoid running almost all global destructors in the common case.

Use C->isForDiagnostics() for the decision of whether to do this, which
is the same condition as used elsewhere for triggering "-disable-free".

Diff Detail

Event Timeline

nhaehnle created this revision.Jul 26 2022, 7:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2022, 7:53 AM
nhaehnle requested review of this revision.Jul 26 2022, 7:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2022, 7:53 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Jul 29 2022, 2:23 PM