[llvm] Gsymutil aggregation similar to DwarfDump --verify (PR #81154)
Greg Clayton via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 11:45:03 PST 2024
================
@@ -693,18 +710,24 @@ llvm::Error DwarfTransformer::verify(StringRef GsymPath, raw_ostream &Log) {
gsymFilename = LR->getSourceFile(Idx);
// Verify function name
if (dii.FunctionName.find(gii.Name.str()) != 0)
- Log << "error: address " << HEX64(Addr) << " DWARF function \""
- << dii.FunctionName.c_str()
- << "\" doesn't match GSYM function \"" << gii.Name << "\"\n";
+ Out.Report("TODO:", [&](raw_ostream &Log) {
+ Log << "error: address " << HEX64(Addr) << " DWARF function \""
+ << dii.FunctionName.c_str()
+ << "\" doesn't match GSYM function \"" << gii.Name << "\"\n";
+ });
// Verify source file path
if (dii.FileName != gsymFilename)
- Log << "error: address " << HEX64(Addr) << " DWARF path \""
- << dii.FileName.c_str() << "\" doesn't match GSYM path \""
- << gsymFilename.c_str() << "\"\n";
+ Out.Report("TODO:", [&](raw_ostream &Log) {
+ Log << "error: address " << HEX64(Addr) << " DWARF path \""
+ << dii.FileName.c_str() << "\" doesn't match GSYM path \""
+ << gsymFilename.c_str() << "\"\n";
+ });
// Verify source file line
if (dii.Line != gii.Line)
- Log << "error: address " << HEX64(Addr) << " DWARF line "
- << dii.Line << " != GSYM line " << gii.Line << "\n";
+ Out.Report("TODO:", [&](raw_ostream &Log) {
+ Log << "error: address " << HEX64(Addr) << " DWARF line "
+ << dii.Line << " != GSYM line " << gii.Line << "\n";
+ });
----------------
clayborg wrote:
ditto
https://github.com/llvm/llvm-project/pull/81154
More information about the llvm-commits
mailing list