[PATCH] D86539: [Debuginfo][llvm-dwarfutil] llvm-dwarfutil dsymutil-like tool for ELF.
Alexey Lapshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 14:37:03 PDT 2022
avl added inline comments.
================
Comment at: llvm/tools/llvm-dwarfutil/llvm-dwarfutil.cpp:174
+ if (ObjectFile *Obj = static_cast<ObjectFile *>(BinOrErr->getBinary())) {
+ verbose("Verifying DWARF...", Opts.Verbose);
+ std::unique_ptr<DWARFContext> DICtx = DWARFContext::create(*Obj);
----------------
jhenderson wrote:
> Test case?
It is quite tricky to create a test case here. Changing this to asserts does not look right. I think it is safe to leave it as is.
================
Comment at: llvm/tools/llvm-dwarfutil/llvm-dwarfutil.cpp:271
+
+using DebugInfoBits = SmallString<100000>;
+
----------------
jhenderson wrote:
> Is `SmallString` really the right answer here for such a large base size?
raw_svector_ostream uses SmallString. If that constant looks too large let`s consider to make it smaller?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86539/new/
https://reviews.llvm.org/D86539
More information about the llvm-commits
mailing list