This is an archive of the discontinued LLVM Phabricator instance.

Cleanup LLVMBitcode headers
ClosedPublic

Authored by serge-sans-paille on Feb 6 2022, 12:57 PM.

Details

Summary

Major user-facing changes:
llvm/Bitcode/BitcodeReader.h no longer includes llvm/IR/ModuleSummaryIndex.h

Some statistics:
clang++ -E -Iinclude -I../llvm/include ../llvm/lib/Bitcode/Reader/*.cpp -std=c++14 -fno-rtti -fno-exceptions | wc -l
after: 493335
before: 539640

Discourse thread on the topic: https://discourse.llvm.org/t/include-what-you-use-include-cleanup/

Diff Detail

Event Timeline

serge-sans-paille requested review of this revision.Feb 6 2022, 12:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 6 2022, 12:57 PM
RKSimon added inline comments.Feb 6 2022, 1:23 PM
llvm/lib/Bitcode/Reader/MetadataLoader.h
69–70

Could the SmallVectorImpl be replaced with ArrayRef ?

MaskRay accepted this revision.Feb 7 2022, 1:05 AM

LGTM after @RKSimon's comment Could the SmallVectorImpl be replaced with ArrayRef ? is fixed.

This revision is now accepted and ready to land.Feb 7 2022, 1:05 AM
This revision was landed with ongoing or failed builds.Feb 7 2022, 12:19 PM
This revision was automatically updated to reflect the committed changes.