[PATCH] D84624: [DWARFYAML] Rename checkListEntryOperands() to checkOperandCount(). NFC.
Xing GUO via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 07:58:06 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6784d82d5b85: [DWARFYAML] Rename checkListEntryOperands() to checkOperandCount(). NFC. (authored by Higuoxing).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84624/new/
https://reviews.llvm.org/D84624
Files:
llvm/lib/ObjectYAML/DWARFEmitter.cpp
Index: llvm/lib/ObjectYAML/DWARFEmitter.cpp
===================================================================
--- llvm/lib/ObjectYAML/DWARFEmitter.cpp
+++ llvm/lib/ObjectYAML/DWARFEmitter.cpp
@@ -543,9 +543,9 @@
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,
@@ -578,7 +578,7 @@
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 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84624.281236.patch
Type: text/x-patch
Size: 1114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200728/f87f8073/attachment.bin>
More information about the llvm-commits
mailing list