aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/TextStubCommon.h
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2022-01-26 08:02:49 -0500
committerserge-sans-paille <sguelton@redhat.com>2022-01-26 14:21:25 +0100
commitb48e3782182639d4e59624290f166a84e53300bb (patch)
tree4f90ae6601650410c6a3c7e483e2a7356f399f57 /llvm/lib/TextAPI/TextStubCommon.h
parentc283c8dfb5a9770126f06f55644c6208b5582c19 (diff)
downloadllvm-b48e3782182639d4e59624290f166a84e53300bb.zip
llvm-b48e3782182639d4e59624290f166a84e53300bb.tar.gz
llvm-b48e3782182639d4e59624290f166a84e53300bb.tar.bz2
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
Diffstat (limited to 'llvm/lib/TextAPI/TextStubCommon.h')
-rw-r--r--llvm/lib/TextAPI/TextStubCommon.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/TextAPI/TextStubCommon.h b/llvm/lib/TextAPI/TextStubCommon.h
index 89ae5d5..aac2722 100644
--- a/llvm/lib/TextAPI/TextStubCommon.h
+++ b/llvm/lib/TextAPI/TextStubCommon.h
@@ -16,9 +16,9 @@
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/YAMLTraits.h"
#include "llvm/TextAPI/Architecture.h"
-#include "llvm/TextAPI/ArchitectureSet.h"
#include "llvm/TextAPI/InterfaceFile.h"
-#include "llvm/TextAPI/PackedVersion.h"
+#include "llvm/TextAPI/Platform.h"
+#include "llvm/TextAPI/Target.h"
using UUID = std::pair<llvm::MachO::Target, std::string>;
@@ -28,6 +28,11 @@ LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(UUID)
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(FlowStringRef)
namespace llvm {
+
+namespace MachO {
+ class ArchitectureSet;
+ class PackedVersion;
+}
namespace yaml {
template <> struct ScalarTraits<FlowStringRef> {