Cleanup LLVMTextAPI headers
authorserge-sans-paille <sguelton@redhat.com>
Wed, 26 Jan 2022 13:02:49 +0000 (08:02 -0500)
committerserge-sans-paille <sguelton@redhat.com>
Wed, 26 Jan 2022 13:21:25 +0000 (14:21 +0100)
commitb48e3782182639d4e59624290f166a84e53300bb
tree4f90ae6601650410c6a3c7e483e2a7356f399f57
parentc283c8dfb5a9770126f06f55644c6208b5582c19
Cleanup LLVMTextAPI headers

Based on the output of iwyu. A full rebuild of llvm-project doesn't exhibit any
significant false dependencies.

The impact on preprocessed output is larger than expected, given the small
amount of changes

$ clang++ -E  -Iinclude -I../llvm/include ../llvm/lib/TextAPI/*.cpp -std=c++14 -fno-rtti -fno-exceptions | wc -l
before: 635319
After: 643716

Discourse thread on the topic: https://llvm.discourse.group/t/include-what-you-use-include-cleanup
llvm/include/llvm/TextAPI/InterfaceFile.h
llvm/include/llvm/TextAPI/Target.h
llvm/lib/TextAPI/Architecture.cpp
llvm/lib/TextAPI/PackedVersion.cpp
llvm/lib/TextAPI/Target.cpp
llvm/lib/TextAPI/TextStubCommon.h