Skip to content

Commit a88cc20

Browse files
committed
ProfileSummaryInfo.h - remove unnecessary includes. NFC
Remove a number of includes that aren't necessary (nor are we relying on the remaining includes to provide the declarations), we just needed a llvm::Instruction forward declaration. This exposed a couple of source files that were implicitly replying on the includes for their use of llvm::SmallSet or std::set, requiring local includes to be added there instead.
1 parent 44920e8 commit a88cc20

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

llvm/include/llvm/Analysis/ProfileSummaryInfo.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,18 @@
1414
#ifndef LLVM_ANALYSIS_PROFILE_SUMMARY_INFO_H
1515
#define LLVM_ANALYSIS_PROFILE_SUMMARY_INFO_H
1616

17-
#include "llvm/ADT/ArrayRef.h"
1817
#include "llvm/ADT/DenseMap.h"
19-
#include "llvm/ADT/SmallSet.h"
2018
#include "llvm/IR/Function.h"
21-
#include "llvm/IR/Instructions.h"
2219
#include "llvm/IR/PassManager.h"
2320
#include "llvm/IR/ProfileSummary.h"
24-
#include "llvm/IR/ValueHandle.h"
2521
#include "llvm/Pass.h"
2622
#include <memory>
2723

2824
namespace llvm {
2925
class BasicBlock;
3026
class BlockFrequencyInfo;
3127
class CallSite;
28+
class Instruction;
3229
class ProfileSummary;
3330
/// Analysis providing profile information.
3431
///

llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "llvm/ADT/None.h"
1919
#include "llvm/ADT/Optional.h"
2020
#include "llvm/ADT/STLExtras.h"
21+
#include "llvm/ADT/SmallSet.h"
2122
#include "llvm/ADT/SmallVector.h"
2223
#include "llvm/ADT/Statistic.h"
2324
#include "llvm/CodeGen/FunctionLoweringInfo.h"

llvm/lib/Target/BPF/BPFMIPeephole.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "llvm/CodeGen/MachineInstrBuilder.h"
2828
#include "llvm/CodeGen/MachineRegisterInfo.h"
2929
#include "llvm/Support/Debug.h"
30+
#include <set>
3031

3132
using namespace llvm;
3233

0 commit comments

Comments
 (0)