From 3e5d845ca2f2400dcd9b59c5a0fed68978c6fb5e Mon Sep 17 00:00:00 2001 From: Saketh Rama Date: Wed, 27 Feb 2019 16:50:04 -0500 Subject: [PATCH] Add override specifier for getAnalysisUsage. This compiles with LLVM/Clang 4.0.1. --- include/llvm/Transforms/LoopTime/LoopTimer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Transforms/LoopTime/LoopTimer.h b/include/llvm/Transforms/LoopTime/LoopTimer.h index 4aca2e28..41d66e21 100644 --- a/include/llvm/Transforms/LoopTime/LoopTimer.h +++ b/include/llvm/Transforms/LoopTime/LoopTimer.h @@ -39,7 +39,7 @@ namespace { public: static char ID; CountLoops():LoopPass(ID){} - void getAnalysisUsage(AnalysisUsage&AU)const ; + void getAnalysisUsage(AnalysisUsage&AU) const override; bool runOnLoop(Loop *L,LPPassManager&) override; }; }