[PATCH] D89243: [AMDGPU] Print metadata on error
Sebastian Neubauer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 12 08:22:21 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc2216d796aab: [AMDGPU] Print metadata on error (authored by sebastian-ne).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89243/new/
https://reviews.llvm.org/D89243
Files:
llvm/tools/llvm-readobj/ELFDumper.cpp
Index: llvm/tools/llvm-readobj/ELFDumper.cpp
===================================================================
--- llvm/tools/llvm-readobj/ELFDumper.cpp
+++ llvm/tools/llvm-readobj/ELFDumper.cpp
@@ -5108,10 +5108,10 @@
return {"AMDGPU Metadata", "Invalid AMDGPU Metadata"};
AMDGPU::HSAMD::V3::MetadataVerifier Verifier(true);
+ std::string HSAMetadataString;
if (!Verifier.verify(MsgPackDoc.getRoot()))
- return {"AMDGPU Metadata", "Invalid AMDGPU Metadata"};
+ HSAMetadataString = "Invalid AMDGPU Metadata\n";
- std::string HSAMetadataString;
raw_string_ostream StrOS(HSAMetadataString);
MsgPackDoc.toYAML(StrOS);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89243.297600.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201012/167c06ff/attachment.bin>
More information about the llvm-commits
mailing list