llvm.org GIT mirror llvm / 6764d46
Remove some #include from StackProtector.h; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304748 91177308-0d34-0410-b5e6-96231b3b80d8 Matthias Braun 3 years ago
2 changed file(s) with 8 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
1818
1919 #include "llvm/ADT/SmallPtrSet.h"
2020 #include "llvm/ADT/Triple.h"
21 #include "llvm/CodeGen/TargetPassConfig.h"
2221 #include "llvm/IR/Dominators.h"
2322 #include "llvm/IR/ValueMap.h"
2423 #include "llvm/Pass.h"
2524 #include "llvm/Target/TargetLowering.h"
26 #include "llvm/Target/TargetMachine.h"
2725
2826 namespace llvm {
2927
3028 class Function;
3129 class Module;
3230 class PHINode;
31 class TargetMachine;
3332
3433 class StackProtector : public FunctionPass {
3534 public:
118117 initializeStackProtectorPass(*PassRegistry::getPassRegistry());
119118 }
120119
121 void getAnalysisUsage(AnalysisUsage &AU) const override {
122 AU.addRequired();
123 AU.addPreserved();
124 }
120 void getAnalysisUsage(AnalysisUsage &AU) const override;
125121
126122 SSPLayoutKind getSSPLayout(const AllocaInst *AI) const;
127123
2020 #include "llvm/Analysis/OptimizationDiagnosticInfo.h"
2121 #include "llvm/CodeGen/Passes.h"
2222 #include "llvm/CodeGen/StackProtector.h"
23 #include "llvm/CodeGen/TargetPassConfig.h"
2324 #include "llvm/IR/Attributes.h"
2425 #include "llvm/IR/BasicBlock.h"
2526 #include "llvm/IR/Constants.h"
8990 else if (I->second != SSPLK_LargeArray && Kind != SSPLK_AddrOf)
9091 I->second = Kind;
9192 }
93 }
94
95 void StackProtector::getAnalysisUsage(AnalysisUsage &AU) const {
96 AU.addRequired();
97 AU.addPreserved();
9298 }
9399
94100 bool StackProtector::runOnFunction(Function &Fn) {