[PATCH] D107421: [yaml2obj][XCOFF] Customize the string table.
Xing GUO via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 11 01:36:36 PDT 2021
Higuoxing added inline comments.
================
Comment at: llvm/lib/ObjectYAML/XCOFFEmitter.cpp:396-397
// Write the string table.
- if (Strings.getSize() > 4)
- Strings.write(W.OS);
+ if (StrTbl.getSize() > 4 && !Obj.StrTbl.Suppressed)
+ StrTbl.write(W.OS);
return true;
----------------
I believe You're are able to pad the string table to a specified length without modifying the interface of `StringTableBuilder`. Please let me know if it doesn't work :)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107421/new/
https://reviews.llvm.org/D107421
More information about the llvm-commits
mailing list