[clang] Remove deprecated ControlFlowContext::build()
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 23 Dec 2022 14:03:48 +0000 (15:03 +0100)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 23 Dec 2022 14:06:59 +0000 (15:06 +0100)
Reviewed By: merrymeerkat

Differential Revision: https://reviews.llvm.org/D140625

clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h
clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp

index 58e901fac004799f0c5f03ed8bf68186194a8a32..e641468f77d0036f6b9e92efce244771492902b2 100644 (file)
@@ -35,10 +35,6 @@ public:
   static llvm::Expected<ControlFlowContext> build(const Decl *D, Stmt &S,
                                                   ASTContext &C);
 
-  // DEPRECATED. Use overload above.
-  static llvm::Expected<ControlFlowContext> build(const Decl *D, Stmt *S,
-                                                  ASTContext *C);
-
   /// Returns the `Decl` containing the statement used to construct the CFG, if
   /// available.
   const Decl *getDecl() const { return ContainingDecl; }
index 2bdb1cdcc95343e617458d7113c82ef302ccbaf9..2492b5203724c8a9a2d896ddf73becd4ecb6da68 100644 (file)
@@ -67,12 +67,5 @@ ControlFlowContext::build(const Decl *D, Stmt &S, ASTContext &C) {
   return ControlFlowContext(D, std::move(Cfg), std::move(StmtToBlock));
 }
 
-llvm::Expected<ControlFlowContext>
-ControlFlowContext::build(const Decl *D, Stmt *S, ASTContext *C) {
-  assert(S != nullptr);
-  assert(C != nullptr);
-  return build(D, *S, *C);
-}
-
 } // namespace dataflow
 } // namespace clang