Skip to content

Commit 6cb95f7

Browse files
authored
[clang][dataflow] Remove deprecated method AdornedCFG::getStmtToBlock(). (llvm#101174)
1 parent 243b27f commit 6cb95f7

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

clang/include/clang/Analysis/FlowSensitive/AdornedCFG.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ class StmtToBlockMap {
3737
return StmtToBlock.lookup(&ignoreCFGOmittedNodes(S));
3838
}
3939

40-
const llvm::DenseMap<const Stmt *, const CFGBlock *> &getMap() const {
41-
return StmtToBlock;
42-
}
43-
4440
private:
4541
llvm::DenseMap<const Stmt *, const CFGBlock *> StmtToBlock;
4642
};
@@ -67,14 +63,6 @@ class AdornedCFG {
6763
/// Returns the CFG that is stored in this context.
6864
const CFG &getCFG() const { return *Cfg; }
6965

70-
/// Returns a mapping from statements to basic blocks that contain them.
71-
/// Deprecated. Use `blockForStmt()` instead (which prevents the potential
72-
/// error of forgetting to call `ignoreCFGOmittedNodes()` on the statement to
73-
/// look up).
74-
const llvm::DenseMap<const Stmt *, const CFGBlock *> &getStmtToBlock() const {
75-
return StmtToBlock.getMap();
76-
}
77-
7866
/// Returns the basic block that contains `S`, or null if no basic block
7967
/// containing `S` is found.
8068
const CFGBlock *blockForStmt(const Stmt &S) const {

0 commit comments

Comments
 (0)