[llvm] f14d4c9 - EHPersonalities.h - reduce Triple.h include to forward declaration. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 6 07:52:51 PDT 2020
Author: Simon Pilgrim
Date: 2020-06-06T15:48:31+01:00
New Revision: f14d4c9c54ce7738a6c496741b7d41eb6532d74e
URL: https://github.com/llvm/llvm-project/commit/f14d4c9c54ce7738a6c496741b7d41eb6532d74e
DIFF: https://github.com/llvm/llvm-project/commit/f14d4c9c54ce7738a6c496741b7d41eb6532d74e.diff
LOG: EHPersonalities.h - reduce Triple.h include to forward declaration. NFC.
Move implicit include dependencies down to source files.
Added:
Modified:
llvm/include/llvm/Analysis/EHPersonalities.h
llvm/lib/CodeGen/WinEHPrepare.cpp
llvm/lib/Transforms/Utils/EscapeEnumerator.cpp
Removed:
################################################################################
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) {
More information about the llvm-commits
mailing list