forked from OSchip/llvm-project
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.
This commit is contained in:
parent
44920e8566
commit
a88cc20456
|
@ -14,14 +14,10 @@
|
|||
#ifndef LLVM_ANALYSIS_PROFILE_SUMMARY_INFO_H
|
||||
#define LLVM_ANALYSIS_PROFILE_SUMMARY_INFO_H
|
||||
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SmallSet.h"
|
||||
#include "llvm/IR/Function.h"
|
||||
#include "llvm/IR/Instructions.h"
|
||||
#include "llvm/IR/PassManager.h"
|
||||
#include "llvm/IR/ProfileSummary.h"
|
||||
#include "llvm/IR/ValueHandle.h"
|
||||
#include "llvm/Pass.h"
|
||||
#include <memory>
|
||||
|
||||
|
@ -29,6 +25,7 @@ namespace llvm {
|
|||
class BasicBlock;
|
||||
class BlockFrequencyInfo;
|
||||
class CallSite;
|
||||
class Instruction;
|
||||
class ProfileSummary;
|
||||
/// Analysis providing profile information.
|
||||
///
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "llvm/ADT/None.h"
|
||||
#include "llvm/ADT/Optional.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallSet.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/CodeGen/FunctionLoweringInfo.h"
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
||||
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include <set>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
|
|
Loading…
Reference in New Issue