diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-03-05 09:10:37 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-03-05 09:10:37 +0000 |
| commit | 3e4c697ca1314da24ac34e42293cc28d88fdc134 (patch) | |
| tree | 7a935b36554394c06777483ad27cf41e23360ead /llvm/lib/Transforms/Scalar/SCCP.cpp | |
| parent | 6a927ecb7a98e2c9a25b724f96f153749ca475dd (diff) | |
| download | bcm5719-llvm-3e4c697ca1314da24ac34e42293cc28d88fdc134.tar.gz bcm5719-llvm-3e4c697ca1314da24ac34e42293cc28d88fdc134.zip | |
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 202953
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 4bd0f4f0fad..a8908a1c190 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -1499,7 +1499,7 @@ namespace { /// Sparse Conditional Constant Propagator. /// struct SCCP : public FunctionPass { - virtual void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequired<TargetLibraryInfo>(); } static char ID; // Pass identification, replacement for typeid @@ -1510,7 +1510,7 @@ namespace { // runOnFunction - Run the Sparse Conditional Constant Propagation // algorithm, and return true if the function was modified. // - bool runOnFunction(Function &F); + bool runOnFunction(Function &F) override; }; } // end anonymous namespace @@ -1632,14 +1632,14 @@ namespace { /// Constant Propagation. /// struct IPSCCP : public ModulePass { - virtual void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequired<TargetLibraryInfo>(); } static char ID; IPSCCP() : ModulePass(ID) { initializeIPSCCPPass(*PassRegistry::getPassRegistry()); } - bool runOnModule(Module &M); + bool runOnModule(Module &M) override; }; } // end anonymous namespace |

