diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-03-05 07:30:04 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-03-05 07:30:04 +0000 |
| commit | e9ba759c816ee74fe4c7a780a77726bc66c42899 (patch) | |
| tree | 7ba7261e0df528222dfec5e45d46e2c79cffbc51 /llvm/lib/Analysis/AliasAnalysis.cpp | |
| parent | 2759a7c9c06f2ace5ad9cd04bd054c4c5825897e (diff) | |
| download | bcm5719-llvm-e9ba759c816ee74fe4c7a780a77726bc66c42899.tar.gz bcm5719-llvm-e9ba759c816ee74fe4c7a780a77726bc66c42899.zip | |
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 202945
Diffstat (limited to 'llvm/lib/Analysis/AliasAnalysis.cpp')
| -rw-r--r-- | llvm/lib/Analysis/AliasAnalysis.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp index 14e6f71dd26..8f2ddb5507d 100644 --- a/llvm/lib/Analysis/AliasAnalysis.cpp +++ b/llvm/lib/Analysis/AliasAnalysis.cpp @@ -370,9 +370,9 @@ namespace { CapturesBefore(const Instruction *I, DominatorTree *DT) : BeforeHere(I), DT(DT), Captured(false) {} - void tooManyUses() { Captured = true; } + void tooManyUses() override { Captured = true; } - bool shouldExplore(Use *U) { + bool shouldExplore(Use *U) override { Instruction *I = cast<Instruction>(U->getUser()); BasicBlock *BB = I->getParent(); // We explore this usage only if the usage can reach "BeforeHere". @@ -388,7 +388,7 @@ namespace { return true; } - bool captured(Use *U) { + bool captured(Use *U) override { Instruction *I = cast<Instruction>(U->getUser()); BasicBlock *BB = I->getParent(); // Same logic as in shouldExplore. |

