projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TTI: Honour cost model for estimating cost of vector-intrinsic and calls.
[oota-llvm.git]
/
include
/
llvm
/
CodeGen
/
StackProtector.h
diff --git
a/include/llvm/CodeGen/StackProtector.h
b/include/llvm/CodeGen/StackProtector.h
index a42e13ee2b6cea511986ada6e9b3fa057bf62d2d..8cef85cb4485245d6593890623d0bcde8b697736 100644
(file)
--- a/
include/llvm/CodeGen/StackProtector.h
+++ b/
include/llvm/CodeGen/StackProtector.h
@@
-19,8
+19,8
@@
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Triple.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Triple.h"
-#include "llvm/ADT/ValueMap.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Dominators.h"
+#include "llvm/IR/ValueMap.h"
#include "llvm/Pass.h"
#include "llvm/Target/TargetLowering.h"
#include "llvm/Pass.h"
#include "llvm/Target/TargetLowering.h"
@@
-105,22
+105,24
@@
private:
public:
static char ID; // Pass identification, replacement for typeid.
public:
static char ID; // Pass identification, replacement for typeid.
- StackProtector() : FunctionPass(ID), TM(0), TLI(0), SSPBufferSize(0) {
+ StackProtector()
+ : FunctionPass(ID), TM(nullptr), TLI(nullptr), SSPBufferSize(0) {
initializeStackProtectorPass(*PassRegistry::getPassRegistry());
}
StackProtector(const TargetMachine *TM)
initializeStackProtectorPass(*PassRegistry::getPassRegistry());
}
StackProtector(const TargetMachine *TM)
- : FunctionPass(ID), TM(TM), TLI(
0
), Trip(TM->getTargetTriple()),
+ : FunctionPass(ID), TM(TM), TLI(
nullptr
), Trip(TM->getTargetTriple()),
SSPBufferSize(8) {
initializeStackProtectorPass(*PassRegistry::getPassRegistry());
}
SSPBufferSize(8) {
initializeStackProtectorPass(*PassRegistry::getPassRegistry());
}
- v
irtual void getAnalysisUsage(AnalysisUsage &AU) const
{
- AU.addPreserved<DominatorTree>();
+ v
oid getAnalysisUsage(AnalysisUsage &AU) const override
{
+ AU.addPreserved<DominatorTree
WrapperPass
>();
}
SSPLayoutKind getSSPLayout(const AllocaInst *AI) const;
}
SSPLayoutKind getSSPLayout(const AllocaInst *AI) const;
+ void adjustForColoring(const AllocaInst *From, const AllocaInst *To);
-
virtual bool runOnFunction(Function &Fn)
;
+
bool runOnFunction(Function &Fn) override
;
};
} // end namespace llvm
};
} // end namespace llvm