after https://reviews.llvm.org/D137096, I faced compile error:
> /llvm-project/llvm/tools/llvm-readobj/ELFDumper.cpp:7182:7: error: call to member function 'printNumber' is ambiguous
> W.printNumber("Count", Count[I]);
> ~~^~~~~~~~~~~
> ^
> 12 errors generated
which was occurred by absentce of "printNumber(StringRef Label, size_t Value)".
To fix this, I just added: that one.
> + virtual void printNumber(StringRef Label, size_t Value) {Env:
> + startLine() << Label << ": " << Value << "\n";OS: macOS 13.2.1 (22D68)
> + }LLVM version: 14.0.6 (from homebrew)
Build command:
> cmake -DLLVM_TARGETS_TO_BUILD="AArch64" -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_BUILD_EXAMPLES=ON -DLLVM_ENABLE_PROJECTS=mlir -G Ninja ../llvm
Full compile error message:
> /llvm-project/llvm/tools/llvm-readobj/ELFDumper.cpp:7182:7: error: call to member function 'printNumber' is ambiguous
> W.printNumber("Count", Count[I]);
> ~~^~~~~~~~~~~
> /llvm-project/llvm/include/llvm/Support/ScopedPrinter.h:201:16: note: candidate function
> virtual void printNumber(StringRef Label, uint64_t Value) {
> ^
> /llvm-project/llvm/include/llvm/Support/ScopedPrinter.h:205:16: note: candidate function
> virtual void printNumber(StringRef Label, uint32_t Value) {
> ^
> /llvm-project/llvm/include/llvm/Support/ScopedPrinter.h:209:16: note: candidate function
> virtual void printNumber(StringRef Label, uint16_t Value) {
> ^
> /llvm-project/llvm/include/llvm/Support/ScopedPrinter.h:213:16: note: candidate function
> virtual void printNumber(StringRef Label, uint8_t Value) {
> ^
> /llvm-project/llvm/include/llvm/Support/ScopedPrinter.h:217:16: note: candidate function
> virtual void printNumber(StringRef Label, int64_t Value) {
> ^
> /llvm-project/llvm/include/llvm/Support/ScopedPrinter.h:221:16: note: candidate function
> virtual void printNumber(StringRef Label, int32_t Value) {
> ^
> /llvm-project/llvm/include/llvm/Support/ScopedPrinter.h:225:16: note: candidate function
> virtual void printNumber(StringRef Label, int16_t Value) {
> ^
> /llvm-project/llvm/include/llvm/Support/ScopedPrinter.h:229:16: note: candidate function
> virtual void printNumber(StringRef Label, int8_t Value) {
> ^
> /llvm-project/llvm/include/llvm/Support/ScopedPrinter.h:237:16: note: candidate function
> virtual void printNumber(StringRef Label, float Value) {
> ^
> /llvm-project/llvm/include/llvm/Support/ScopedPrinter.h:241:16: note: candidate function
> virtual void printNumber(StringRef Label, double Value) {
> ^
> 12 errors generated.
> [3837/4064] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/ReducerWorkItem.cpp.o
> ninja: build stopped: subcommand failed.