[clang][dataflow] ArrayRef'ize debugString()

Reviewed By: ymandel

Differential Revision: https://reviews.llvm.org/D130400
This commit is contained in:
Dmitri Gribenko 2022-07-23 01:13:24 +02:00
parent c18304e600
commit 589ddd7fe8
2 changed files with 3 additions and 4 deletions

View File

@ -46,7 +46,7 @@ std::string debugString(
///
/// Names assigned to atoms should not be repeated in `AtomNames`.
std::string debugString(
const std::vector<BoolValue *> &Constraints, const Solver::Result &Result,
ArrayRef<BoolValue *> Constraints, const Solver::Result &Result,
llvm::DenseMap<const AtomicBoolValue *, std::string> AtomNames = {{}});
inline std::string debugString(
const llvm::DenseSet<BoolValue *> &Constraints,

View File

@ -82,7 +82,7 @@ public:
/// Returns a string representation of a set of boolean `Constraints` and the
/// `Result` of satisfiability checking on the `Constraints`.
std::string debugString(const std::vector<BoolValue *> &Constraints,
std::string debugString(ArrayRef<BoolValue *> &Constraints,
const Solver::Result &Result) {
auto Template = R"(
Constraints
@ -185,8 +185,7 @@ debugString(const BoolValue &B,
}
std::string
debugString(const std::vector<BoolValue *> &Constraints,
const Solver::Result &Result,
debugString(ArrayRef<BoolValue *> Constraints, const Solver::Result &Result,
llvm::DenseMap<const AtomicBoolValue *, std::string> AtomNames) {
return DebugStringGenerator(std::move(AtomNames))
.debugString(Constraints, Result);