diff options
author | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2019-10-21 17:51:54 +0000 |
---|---|---|
committer | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2019-10-21 17:51:54 +0000 |
commit | b172b0f36f0158f1ee4adc6003c28b6fa8b1e4a7 (patch) | |
tree | 5a8d32bbb739e65f094cc20bd691431e17fe9173 | |
parent | aa0a5ffb56c3d082c6e866637b97e0134213425d (diff) | |
download | llvm-b172b0f36f0158f1ee4adc6003c28b6fa8b1e4a7.tar.gz |
Prune Pass.h include from DataLayout.h. NFCI
Summary:
Reduce include dependencies by no longer including Pass.h from
DataLayout.h. That include seemed irrelevant to DataLayout, as
well as being irrelevant to several users of DataLayout.
Reviewers: rnk
Reviewed By: rnk
Subscribers: mehdi_amini, hiraditya, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D69261
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375436 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/IR/DataLayout.h | 1 | ||||
-rw-r--r-- | include/llvm/IR/Module.h | 1 | ||||
-rw-r--r-- | include/llvm/IR/PassManager.h | 1 | ||||
-rw-r--r-- | lib/Transforms/Utils/CanonicalizeAliases.cpp | 1 | ||||
-rw-r--r-- | tools/llvm-profdata/llvm-profdata.cpp | 1 | ||||
-rw-r--r-- | unittests/IR/ModuleTest.cpp | 1 |
6 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/IR/DataLayout.h b/include/llvm/IR/DataLayout.h index 8988f7d3c30..85093dd218f 100644 --- a/include/llvm/IR/DataLayout.h +++ b/include/llvm/IR/DataLayout.h @@ -25,7 +25,6 @@ #include "llvm/ADT/StringRef.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Type.h" -#include "llvm/Pass.h" #include "llvm/Support/Casting.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/MathExtras.h" diff --git a/include/llvm/IR/Module.h b/include/llvm/IR/Module.h index f458680cfe1..59331142766 100644 --- a/include/llvm/IR/Module.h +++ b/include/llvm/IR/Module.h @@ -46,6 +46,7 @@ class FunctionType; class GVMaterializer; class LLVMContext; class MemoryBuffer; +class Pass; class RandomNumberGenerator; template <class PtrType> class SmallPtrSetImpl; class StructType; diff --git a/include/llvm/IR/PassManager.h b/include/llvm/IR/PassManager.h index 965c01b167c..1e1f4a92f84 100644 --- a/include/llvm/IR/PassManager.h +++ b/include/llvm/IR/PassManager.h @@ -45,6 +45,7 @@ #include "llvm/IR/Module.h" #include "llvm/IR/PassInstrumentation.h" #include "llvm/IR/PassManagerInternal.h" +#include "llvm/Pass.h" #include "llvm/Support/Debug.h" #include "llvm/Support/TypeName.h" #include "llvm/Support/raw_ostream.h" diff --git a/lib/Transforms/Utils/CanonicalizeAliases.cpp b/lib/Transforms/Utils/CanonicalizeAliases.cpp index 455fcbb1cf9..3c7c8d87259 100644 --- a/lib/Transforms/Utils/CanonicalizeAliases.cpp +++ b/lib/Transforms/Utils/CanonicalizeAliases.cpp @@ -33,6 +33,7 @@ #include "llvm/IR/Operator.h" #include "llvm/IR/ValueHandle.h" +#include "llvm/Pass.h" using namespace llvm; diff --git a/tools/llvm-profdata/llvm-profdata.cpp b/tools/llvm-profdata/llvm-profdata.cpp index 1470442c38b..41e9abb82b1 100644 --- a/tools/llvm-profdata/llvm-profdata.cpp +++ b/tools/llvm-profdata/llvm-profdata.cpp @@ -26,6 +26,7 @@ #include "llvm/Support/InitLLVM.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" +#include "llvm/Support/Threading.h" #include "llvm/Support/ThreadPool.h" #include "llvm/Support/WithColor.h" #include "llvm/Support/raw_ostream.h" diff --git a/unittests/IR/ModuleTest.cpp b/unittests/IR/ModuleTest.cpp index ae420bb5406..12eba7025ee 100644 --- a/unittests/IR/ModuleTest.cpp +++ b/unittests/IR/ModuleTest.cpp @@ -8,6 +8,7 @@ #include "llvm/IR/Module.h" #include "llvm/IR/GlobalVariable.h" +#include "llvm/Pass.h" #include "llvm/Support/RandomNumberGenerator.h" #include "gtest/gtest.h" |