[PATCH] D84624: [DWARFYAML] Rename checkListEntryOperands() to checkOperandsNumber(). NFC.
Xing GUO via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 27 06:11:14 PDT 2020
Higuoxing updated this revision to Diff 280882.
Higuoxing added a comment.
checkOperandsNumber -> checkOperandNumber.
Thanks for reviewing!
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 checkOperandNumber(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 checkOperandNumber(EncodingName, Entry.Values, ExpectedOperands);
};
auto WriteAddress = [&](uint64_t Addr) -> Error {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84624.280882.patch
Type: text/x-patch
Size: 1118 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200727/eec70a26/attachment.bin>
More information about the llvm-commits
mailing list