summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/GraphPrinters.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/opt/GraphPrinters.cpp')
-rw-r--r--llvm/tools/opt/GraphPrinters.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/opt/GraphPrinters.cpp b/llvm/tools/opt/GraphPrinters.cpp
index b299f4c3624..640edfee41d 100644
--- a/llvm/tools/opt/GraphPrinters.cpp
+++ b/llvm/tools/opt/GraphPrinters.cpp
@@ -29,12 +29,12 @@ namespace {
static char ID; // Pass identification, replacement for typeid
DomInfoPrinter() : FunctionPass(ID) {}
- virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.setPreservesAll();
AU.addRequired<DominatorTreeWrapperPass>();
}
- virtual bool runOnFunction(Function &F) {
+ bool runOnFunction(Function &F) override {
getAnalysis<DominatorTreeWrapperPass>().dump();
return false;
}
OpenPOWER on IntegriCloud