From f14d4c9c54ce7738a6c496741b7d41eb6532d74e Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 6 Jun 2020 15:48:17 +0100 Subject: [PATCH] EHPersonalities.h - reduce Triple.h include to forward declaration. NFC. Move implicit include dependencies down to source files. --- llvm/include/llvm/Analysis/EHPersonalities.h | 2 +- llvm/lib/CodeGen/WinEHPrepare.cpp | 1 + llvm/lib/Transforms/Utils/EscapeEnumerator.cpp | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Analysis/EHPersonalities.h b/llvm/include/llvm/Analysis/EHPersonalities.h index d89aa11617b5..c17b0b4a90d3 100644 --- a/llvm/include/llvm/Analysis/EHPersonalities.h +++ b/llvm/include/llvm/Analysis/EHPersonalities.h @@ -11,12 +11,12 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/TinyPtrVector.h" -#include "llvm/ADT/Triple.h" #include "llvm/Support/ErrorHandling.h" namespace llvm { class BasicBlock; class Function; +class Triple; class Value; enum class EHPersonality { diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index e8157b1e8c8d..5a25234ba850 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/lib/CodeGen/WinEHPrepare.cpp @@ -18,6 +18,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/MapVector.h" #include "llvm/ADT/STLExtras.h" +#include "llvm/ADT/Triple.h" #include "llvm/Analysis/CFG.h" #include "llvm/Analysis/EHPersonalities.h" #include "llvm/CodeGen/MachineBasicBlock.h" diff --git a/llvm/lib/Transforms/Utils/EscapeEnumerator.cpp b/llvm/lib/Transforms/Utils/EscapeEnumerator.cpp index a62a28deee21..cae9d9ee6d70 100644 --- a/llvm/lib/Transforms/Utils/EscapeEnumerator.cpp +++ b/llvm/lib/Transforms/Utils/EscapeEnumerator.cpp @@ -12,9 +12,11 @@ //===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/EscapeEnumerator.h" +#include "llvm/ADT/Triple.h" #include "llvm/Analysis/EHPersonalities.h" -#include "llvm/Transforms/Utils/Local.h" #include "llvm/IR/Module.h" +#include "llvm/Transforms/Utils/Local.h" + using namespace llvm; static FunctionCallee getDefaultPersonalityFn(Module *M) {