]> granicus.if.org Git - llvm/commitdiff
Prune Pass.h include from DataLayout.h. NFCI
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Mon, 21 Oct 2019 17:51:54 +0000 (17:51 +0000)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Mon, 21 Oct 2019 17:51:54 +0000 (17:51 +0000)
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

include/llvm/IR/DataLayout.h
include/llvm/IR/Module.h
include/llvm/IR/PassManager.h
lib/Transforms/Utils/CanonicalizeAliases.cpp
tools/llvm-profdata/llvm-profdata.cpp
unittests/IR/ModuleTest.cpp

index 8988f7d3c30aa06d3cb4e8fbbe3ac7bcdbb5a72b..85093dd218f8cbf377cd605b5a2e7f69f11deeee 100644 (file)
@@ -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"
index f458680cfe15d6f2b6bbf69d19227fc17b247209..59331142766ae533faeee80eb213eae0b378811a 100644 (file)
@@ -46,6 +46,7 @@ class FunctionType;
 class GVMaterializer;
 class LLVMContext;
 class MemoryBuffer;
+class Pass;
 class RandomNumberGenerator;
 template <class PtrType> class SmallPtrSetImpl;
 class StructType;
index 965c01b167ccbd570c9bd953f39703780a23d695..1e1f4a92f844c59d0c1aa82ed7023ccad2ade1ef 100644 (file)
@@ -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"
index 455fcbb1cf98a4e02bfbac43ad5e55fd5b447ddd..3c7c8d872595f9e7931727e9f4ac414f0f9df136 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "llvm/IR/Operator.h"
 #include "llvm/IR/ValueHandle.h"
+#include "llvm/Pass.h"
 
 using namespace llvm;
 
index 1470442c38b6181a952f832f5b9f5b174e1dcdbc..41e9abb82b1fcbbc5dc2cf55d4fddf140ae95a5f 100644 (file)
@@ -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"
index ae420bb5406d5eee948b6540b699f4b95eae1891..12eba7025eec898abf1d7287de74c36325a8ad13 100644 (file)
@@ -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"