Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit b172b0f

Browse files
committed
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
1 parent aa0a5ff commit b172b0f

File tree

6 files changed

+5
-1
lines changed

6 files changed

+5
-1
lines changed

include/llvm/IR/DataLayout.h

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "llvm/ADT/StringRef.h"
2626
#include "llvm/IR/DerivedTypes.h"
2727
#include "llvm/IR/Type.h"
28-
#include "llvm/Pass.h"
2928
#include "llvm/Support/Casting.h"
3029
#include "llvm/Support/ErrorHandling.h"
3130
#include "llvm/Support/MathExtras.h"

include/llvm/IR/Module.h

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class FunctionType;
4646
class GVMaterializer;
4747
class LLVMContext;
4848
class MemoryBuffer;
49+
class Pass;
4950
class RandomNumberGenerator;
5051
template <class PtrType> class SmallPtrSetImpl;
5152
class StructType;

include/llvm/IR/PassManager.h

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include "llvm/IR/Module.h"
4646
#include "llvm/IR/PassInstrumentation.h"
4747
#include "llvm/IR/PassManagerInternal.h"
48+
#include "llvm/Pass.h"
4849
#include "llvm/Support/Debug.h"
4950
#include "llvm/Support/TypeName.h"
5051
#include "llvm/Support/raw_ostream.h"

lib/Transforms/Utils/CanonicalizeAliases.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
#include "llvm/IR/Operator.h"
3535
#include "llvm/IR/ValueHandle.h"
36+
#include "llvm/Pass.h"
3637

3738
using namespace llvm;
3839

tools/llvm-profdata/llvm-profdata.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "llvm/Support/InitLLVM.h"
2727
#include "llvm/Support/MemoryBuffer.h"
2828
#include "llvm/Support/Path.h"
29+
#include "llvm/Support/Threading.h"
2930
#include "llvm/Support/ThreadPool.h"
3031
#include "llvm/Support/WithColor.h"
3132
#include "llvm/Support/raw_ostream.h"

unittests/IR/ModuleTest.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "llvm/IR/Module.h"
1010
#include "llvm/IR/GlobalVariable.h"
11+
#include "llvm/Pass.h"
1112
#include "llvm/Support/RandomNumberGenerator.h"
1213
#include "gtest/gtest.h"
1314

0 commit comments

Comments
 (0)