This is an archive of the discontinued LLVM Phabricator instance.

[tools] Forward declare classes & remove includes
ClosedPublic

Authored by clemenswasser on Feb 20 2022, 6:24 AM.

Details

Summary

llvm/Support/Error.h and llvm/ADT/ArrayRef.h were identified as quiet heavy by clang build analyzer.
Removing includes and forward declaring the relevant classes saves compilation time

Diff Detail

Event Timeline

clemenswasser created this revision.Feb 20 2022, 6:24 AM
clemenswasser requested review of this revision.Feb 20 2022, 6:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2022, 6:24 AM

Update Patch. I reformatted but diffed the wrong commit hash, sorry :(

The dsymutil part LGTM

MaskRay accepted this revision.Feb 23 2022, 4:01 PM
MaskRay added a subscriber: MaskRay.

LGTM.

This revision is now accepted and ready to land.Feb 23 2022, 4:01 PM
MaskRay added inline comments.Jun 3 2022, 4:31 PM
llvm/tools/llvm-reduce/TestRunner.h
12

This needs to be retained. I'll fix it.

Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2022, 4:31 PM
This revision was landed with ongoing or failed builds.Jun 3 2022, 4:32 PM
This revision was automatically updated to reflect the committed changes.