From 62406fdc6f199e4e7df60830be45de4da97b34c7 Mon Sep 17 00:00:00 2001 From: Josh Magee Date: Wed, 30 Oct 2013 02:25:14 +0000 Subject: 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 --- include/llvm/CodeGen/StackProtector.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include/llvm') 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 SSPLayoutMap; + typedef ValueMap 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 VisitedPHIs; + SmallPtrSet 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()); } -- cgit v1.2.3