summaryrefslogtreecommitdiff
path: root/lib/Target/NVPTX/NVPTXAllocaHoisting.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-29 07:57:44 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-29 07:57:44 +0000
commit6b7b7251790fd18efcc73ed748fefe912ebc56cf (patch)
tree6bd3187e79ac9eeebc0ea360d0a14d96112faf1f /lib/Target/NVPTX/NVPTXAllocaHoisting.h
parente651935ab8230183be307dcaa5da767637582e64 (diff)
downloadllvm-6b7b7251790fd18efcc73ed748fefe912ebc56cf.tar.gz
llvm-6b7b7251790fd18efcc73ed748fefe912ebc56cf.tar.bz2
llvm-6b7b7251790fd18efcc73ed748fefe912ebc56cf.tar.xz
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. NVPTX edition
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX/NVPTXAllocaHoisting.h')
-rw-r--r--lib/Target/NVPTX/NVPTXAllocaHoisting.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/NVPTX/NVPTXAllocaHoisting.h b/lib/Target/NVPTX/NVPTXAllocaHoisting.h
index 22404b75c9..5b610687e3 100644
--- a/lib/Target/NVPTX/NVPTXAllocaHoisting.h
+++ b/lib/Target/NVPTX/NVPTXAllocaHoisting.h
@@ -30,17 +30,17 @@ public:
static char ID; // Pass ID
NVPTXAllocaHoisting() : FunctionPass(ID) {}
- void getAnalysisUsage(AnalysisUsage &AU) const {
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.addRequired<DataLayoutPass>();
AU.addPreserved("stack-protector");
AU.addPreserved<MachineFunctionAnalysis>();
}
- 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();