X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FNVPTX%2FNVPTXAllocaHoisting.h;h=69fc86e75414092dabb1d60f180c605303da3f74;hb=32467012f6db74b0c37f8181ac7c18092b3ad243;hp=768d514dbb13c52ac6e2094820e00ed2b3bde106;hpb=a1514e24cc24b050f53a12650e047799358833a1;p=oota-llvm.git diff --git a/lib/Target/NVPTX/NVPTXAllocaHoisting.h b/lib/Target/NVPTX/NVPTXAllocaHoisting.h index 768d514dbb1..69fc86e7541 100644 --- a/lib/Target/NVPTX/NVPTXAllocaHoisting.h +++ b/lib/Target/NVPTX/NVPTXAllocaHoisting.h @@ -11,11 +11,11 @@ // //===----------------------------------------------------------------------===// -#ifndef NVPTX_ALLOCA_HOISTING_H_ -#define NVPTX_ALLOCA_HOISTING_H_ +#ifndef LLVM_LIB_TARGET_NVPTX_NVPTXALLOCAHOISTING_H +#define LLVM_LIB_TARGET_NVPTX_NVPTXALLOCAHOISTING_H #include "llvm/CodeGen/MachineFunctionAnalysis.h" -#include "llvm/DataLayout.h" +#include "llvm/IR/DataLayout.h" #include "llvm/Pass.h" namespace llvm { @@ -30,20 +30,21 @@ public: static char ID; // Pass ID NVPTXAllocaHoisting() : FunctionPass(ID) {} - void getAnalysisUsage(AnalysisUsage &AU) const { - AU.addRequired(); + void getAnalysisUsage(AnalysisUsage &AU) const override { + AU.addRequired(); + AU.addPreserved("stack-protector"); AU.addPreserved(); } - virtual const char *getPassName() const { + const char *getPassName() const override { return "NVPTX specific alloca hoisting"; } - virtual bool runOnFunction(Function &function); + bool runOnFunction(Function &function) override; }; extern FunctionPass *createAllocaHoisting(); } // end namespace llvm -#endif // NVPTX_ALLOCA_HOISTING_H_ +#endif