Skip to content

Commit

Permalink
[clang][dataflow] Remove deprecated pass-through APIs for DataflowAna…
Browse files Browse the repository at this point in the history
…lysisContext.

These were recently deprecated in https://reviews.llvm.org/D149464.

Reviewed By: ymandel, gribozavr2, xazax.hun

Differential Revision: https://reviews.llvm.org/D149869
  • Loading branch information
bazuzi authored and ymand committed May 8, 2023
1 parent ad6700b commit e875de2
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,6 @@ class Environment {
/// with a symbolic representation of the `this` pointee.
Environment(DataflowAnalysisContext &DACtx, const DeclContext &DeclCtx);

LLVM_DEPRECATED("Use getDataflowAnalysisContext().getOptions() instead.", "")
const DataflowAnalysisContext::Options &getAnalysisOptions() const {
return DACtx->getOptions();
}

LLVM_DEPRECATED("Use getDataflowAnalysisContext().arena() instead.", "")
Arena &arena() const { return DACtx->arena(); }

LLVM_DEPRECATED("Use getDataflowAnalysisContext().getOptions().Log instead.",
"")
Logger &logger() const { return *DACtx->getOptions().Log; }

/// Creates and returns an environment to use for an inline analysis of the
/// callee. Uses the storage location from each argument in the `Call` as the
/// storage location for the corresponding parameter in the callee.
Expand Down Expand Up @@ -422,14 +410,6 @@ class Environment {
/// given `MaxDepth`.
bool canDescend(unsigned MaxDepth, const DeclContext *Callee) const;

/// Returns the `ControlFlowContext` registered for `F`, if any. Otherwise,
/// returns null.
LLVM_DEPRECATED(
"Use getDataflowAnalysisContext().getControlFlowContext(F) instead.", "")
const ControlFlowContext *getControlFlowContext(const FunctionDecl *F) {
return DACtx->getControlFlowContext(F);
}

/// Returns the `DataflowAnalysisContext` used by the environment.
DataflowAnalysisContext &getDataflowAnalysisContext() const { return *DACtx; }

Expand Down

0 comments on commit e875de2

Please sign in to comment.