[llvm] [XCOFF][obj2yaml] support parsing auxiliary symbols for XCOFF (PR #70642)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 7 00:32:48 PST 2023
================
@@ -204,22 +213,19 @@ Error XCOFFDumper::dumpSymbols() {
Sym.NumberOfAuxEntries = NumOfAuxSym;
if (NumOfAuxSym) {
- auto AuxEntTbl = &Sym.AuxEntries;
+ std::vector<std::unique_ptr<XCOFFYAML::AuxSymbolEnt>> AuxEntTbl;
----------------
jh7370 wrote:
I think you can just do `std::vector<std::unique_ptr<XCOFFYAML::AuxSymbolEnt>> &AuxEntTbl = Sym.AuxEntries;`. Then you don't need to move at the end of the block.
https://github.com/llvm/llvm-project/pull/70642
More information about the llvm-commits
mailing list