return Error::success();
}
-static Error checkListEntryOperands(StringRef EncodingString,
- ArrayRef<yaml::Hex64> Values,
- uint64_t ExpectedOperands) {
+static Error checkOperandCount(StringRef EncodingString,
+ ArrayRef<yaml::Hex64> Values,
+ uint64_t ExpectedOperands) {
if (Values.size() != ExpectedOperands)
return createStringError(
errc::invalid_argument,
StringRef EncodingName = dwarf::RangeListEncodingString(Entry.Operator);
auto CheckOperands = [&](uint64_t ExpectedOperands) -> Error {
- return checkListEntryOperands(EncodingName, Entry.Values, ExpectedOperands);
+ return checkOperandCount(EncodingName, Entry.Values, ExpectedOperands);
};
auto WriteAddress = [&](uint64_t Addr) -> Error {