[clang] 6cb95f7 - [clang][dataflow] Remove deprecated method `AdornedCFG::getStmtToBlock()`. (#101174)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 30 06:13:42 PDT 2024
Author: martinboehme
Date: 2024-07-30T15:13:38+02:00
New Revision: 6cb95f73e1974e5e36a6d2b0d1457c401819ffde
URL: https://github.com/llvm/llvm-project/commit/6cb95f73e1974e5e36a6d2b0d1457c401819ffde
DIFF: https://github.com/llvm/llvm-project/commit/6cb95f73e1974e5e36a6d2b0d1457c401819ffde.diff
LOG: [clang][dataflow] Remove deprecated method `AdornedCFG::getStmtToBlock()`. (#101174)
Added:
Modified:
clang/include/clang/Analysis/FlowSensitive/AdornedCFG.h
Removed:
################################################################################
diff --git a/clang/include/clang/Analysis/FlowSensitive/AdornedCFG.h b/clang/include/clang/Analysis/FlowSensitive/AdornedCFG.h
index 5de66fcb0e3af..5c64e5b094749 100644
--- a/clang/include/clang/Analysis/FlowSensitive/AdornedCFG.h
+++ b/clang/include/clang/Analysis/FlowSensitive/AdornedCFG.h
@@ -37,10 +37,6 @@ class StmtToBlockMap {
return StmtToBlock.lookup(&ignoreCFGOmittedNodes(S));
}
- const llvm::DenseMap<const Stmt *, const CFGBlock *> &getMap() const {
- return StmtToBlock;
- }
-
private:
llvm::DenseMap<const Stmt *, const CFGBlock *> StmtToBlock;
};
@@ -67,14 +63,6 @@ class AdornedCFG {
/// Returns the CFG that is stored in this context.
const CFG &getCFG() const { return *Cfg; }
- /// Returns a mapping from statements to basic blocks that contain them.
- /// Deprecated. Use `blockForStmt()` instead (which prevents the potential
- /// error of forgetting to call `ignoreCFGOmittedNodes()` on the statement to
- /// look up).
- const llvm::DenseMap<const Stmt *, const CFGBlock *> &getStmtToBlock() const {
- return StmtToBlock.getMap();
- }
-
/// Returns the basic block that contains `S`, or null if no basic block
/// containing `S` is found.
const CFGBlock *blockForStmt(const Stmt &S) const {
More information about the cfe-commits
mailing list