summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJosh Magee <joshua_magee@playstation.sony.com>2013-10-30 02:25:14 +0000
committerJosh Magee <joshua_magee@playstation.sony.com>2013-10-30 02:25:14 +0000
commit62406fdc6f199e4e7df60830be45de4da97b34c7 (patch)
treef4b8fefc069e8125144a3f8811be501d5c5c6794 /include
parent9794186889189efaee69a127123fffd26c834fa4 (diff)
downloadllvm-62406fdc6f199e4e7df60830be45de4da97b34c7.tar.gz
llvm-62406fdc6f199e4e7df60830be45de4da97b34c7.tar.bz2
llvm-62406fdc6f199e4e7df60830be45de4da97b34c7.tar.xz
Reformat code with clang-format.
Differential Revision: http://llvm-reviews.chandlerc.com/D2057 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/StackProtector.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/StackProtector.h b/include/llvm/CodeGen/StackProtector.h
index 12d7c75426..d09a933a66 100644
--- a/include/llvm/CodeGen/StackProtector.h
+++ b/include/llvm/CodeGen/StackProtector.h
@@ -45,7 +45,7 @@ public:
};
/// A mapping of AllocaInsts to their required SSP layout.
- typedef ValueMap<const AllocaInst*, SSPLayoutKind> SSPLayoutMap;
+ typedef ValueMap<const AllocaInst *, SSPLayoutKind> SSPLayoutMap;
private:
const TargetMachine *TM;
@@ -73,7 +73,7 @@ private:
/// if a variable's reference has been taken. This set
/// is maintained to ensure we don't visit the same PHI node multiple
/// times.
- SmallPtrSet<const PHINode*, 16> VisitedPHIs;
+ SmallPtrSet<const PHINode *, 16> VisitedPHIs;
/// InsertStackProtectors - Insert code into the prologue and epilogue of
/// the function.
@@ -102,14 +102,15 @@ private:
/// RequiresStackProtector - Check whether or not this function needs a
/// stack protector based upon the stack protector level.
bool RequiresStackProtector();
+
public:
- static char ID; // Pass identification, replacement for typeid.
+ static char ID; // Pass identification, replacement for typeid.
StackProtector() : FunctionPass(ID), TM(0), TLI(0), SSPBufferSize(0) {
initializeStackProtectorPass(*PassRegistry::getPassRegistry());
}
StackProtector(const TargetMachine *TM)
- : FunctionPass(ID), TM(TM), TLI(0), Trip(TM->getTargetTriple()),
- SSPBufferSize(8) {
+ : FunctionPass(ID), TM(TM), TLI(0), Trip(TM->getTargetTriple()),
+ SSPBufferSize(8) {
initializeStackProtectorPass(*PassRegistry::getPassRegistry());
}