summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/include/llvm/Transforms/Scalar/ADCE.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/include/llvm/Transforms/Scalar/ADCE.h')
-rw-r--r--contrib/llvm/include/llvm/Transforms/Scalar/ADCE.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/llvm/include/llvm/Transforms/Scalar/ADCE.h b/contrib/llvm/include/llvm/Transforms/Scalar/ADCE.h
index f9bc7b7..b9b7e1c 100644
--- a/contrib/llvm/include/llvm/Transforms/Scalar/ADCE.h
+++ b/contrib/llvm/include/llvm/Transforms/Scalar/ADCE.h
@@ -28,10 +28,8 @@ namespace llvm {
/// instructions are dead until proven otherwise. This allows it to eliminate
/// dead computations that other DCE passes do not catch, particularly involving
/// loop computations.
-class ADCEPass {
-public:
- static StringRef name() { return "ADCEPass"; }
- PreservedAnalyses run(Function &F);
+struct ADCEPass : PassInfoMixin<ADCEPass> {
+ PreservedAnalyses run(Function &F, FunctionAnalysisManager &);
};
}
OpenPOWER on IntegriCloud