[llvm] aefdce8 - fix the error caused by D107333:
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 9 01:38:26 PDT 2021
Author: Esme-Yi
Date: 2021-08-09T08:36:39Z
New Revision: aefdce8b397a981c5026d6071e75e50f2f023e1d
URL: https://github.com/llvm/llvm-project/commit/aefdce8b397a981c5026d6071e75e50f2f023e1d
DIFF: https://github.com/llvm/llvm-project/commit/aefdce8b397a981c5026d6071e75e50f2f023e1d.diff
LOG: fix the error caused by D107333:
llvm/tools/llvm-readobj/XCOFFDumper.cpp:464:5: error:
call to member function 'printNumber' is ambiguous
W.printNumber("Length", StrTabSize);
Added:
Modified:
llvm/tools/llvm-readobj/XCOFFDumper.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-readobj/XCOFFDumper.cpp b/llvm/tools/llvm-readobj/XCOFFDumper.cpp
index 3e47ceb9ee73..85c3a251b6b7 100644
--- a/llvm/tools/llvm-readobj/XCOFFDumper.cpp
+++ b/llvm/tools/llvm-readobj/XCOFFDumper.cpp
@@ -460,7 +460,7 @@ void XCOFFDumper::printSymbols() {
void XCOFFDumper::printStringTable() {
DictScope DS(W, "StringTable");
StringRef StrTable = Obj.getStringTable();
- size_t StrTabSize = StrTable.size();
+ uint32_t StrTabSize = StrTable.size();
W.printNumber("Length", StrTabSize);
// Print strings from the fifth byte, since the first four bytes contain the
// length (in bytes) of the string table (including the length field).
More information about the llvm-commits
mailing list