forked from OSchip/llvm-project
[clang][dataflow][NFC] Remove last use of deprecated ctor
Use a delegating constructor to remove the last use of the deprecated ctor of `TypeErasedDataflowAnalysis`, and then delete it. Differential Revision: https://reviews.llvm.org/D130653
This commit is contained in:
parent
876af563e7
commit
5e28923e33
|
@ -66,7 +66,8 @@ public:
|
|||
|
||||
/// Deprecated. Use the `DataflowAnalysisOptions` constructor instead.
|
||||
explicit DataflowAnalysis(ASTContext &Context, bool ApplyBuiltinTransfer)
|
||||
: TypeErasedDataflowAnalysis(ApplyBuiltinTransfer), Context(Context) {}
|
||||
: DataflowAnalysis(Context, DataflowAnalysisOptions{ApplyBuiltinTransfer,
|
||||
TransferOptions{}}) {}
|
||||
|
||||
explicit DataflowAnalysis(ASTContext &Context,
|
||||
DataflowAnalysisOptions Options)
|
||||
|
|
|
@ -59,10 +59,6 @@ class TypeErasedDataflowAnalysis : public Environment::ValueModel {
|
|||
public:
|
||||
TypeErasedDataflowAnalysis() : Options({}) {}
|
||||
|
||||
/// Deprecated. Use the `DataflowAnalysisOptions` constructor instead.
|
||||
TypeErasedDataflowAnalysis(bool ApplyBuiltinTransfer)
|
||||
: Options({ApplyBuiltinTransfer, TransferOptions{}}) {}
|
||||
|
||||
TypeErasedDataflowAnalysis(DataflowAnalysisOptions Options)
|
||||
: Options(Options) {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue