[PATCH] D131290: [llvm-objdump] Create name for fake sections
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 6 01:06:19 PDT 2022
MaskRay added a comment.
In D131290#3771459 <https://reviews.llvm.org/D131290#3771459>, @jhenderson wrote:
> In D131290#3771385 <https://reviews.llvm.org/D131290#3771385>, @namhyung wrote:
>
>> SmallVector<std::string, 0> SecNames;
>> ...
>> SecNames.push_back(("PT_LOAD#" + Twine(Idx)).str());
>>
>> This makes the test failing again.
>
> Please see the second half of my previous comment re. vector resizing (can apply to SmallVector too potentially). I would expect that to be a problem.
I think we should switch to what I originally suggested, drop StringTableBuilder and use a string with `\0` terminators:)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131290/new/
https://reviews.llvm.org/D131290
More information about the llvm-commits
mailing list