diff options
author | Rahman Lavaee <rahmanl@google.com> | 2023-11-17 11:44:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 11:44:06 -0800 |
commit | fab690d6b5d50f263bdb2413c913c9bd34d47625 (patch) | |
tree | 1c03692a3d0a8104ea6b527659a101c96e325631 /llvm/lib/Object/ELF.cpp | |
parent | be32e39892372d9fe069af6bfb829aa0071176a6 (diff) | |
download | llvm-fab690d6b5d50f263bdb2413c913c9bd34d47625.zip llvm-fab690d6b5d50f263bdb2413c913c9bd34d47625.tar.gz llvm-fab690d6b5d50f263bdb2413c913c9bd34d47625.tar.bz2 |
[NFC][SHT_LLVM_BB_ADDR_MAP] Define and use constructor and accessors for BBAddrMap fields. (#72689)
The fields are still kept as public for now since our tooling accesses
them. Will change them to private visibility in a later patch.
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
-rw-r--r-- | llvm/lib/Object/ELF.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/ELF.cpp b/llvm/lib/Object/ELF.cpp index 0d1862e..1d73a6f 100644 --- a/llvm/lib/Object/ELF.cpp +++ b/llvm/lib/Object/ELF.cpp @@ -745,7 +745,7 @@ ELFFile<ELFT>::decodeBBAddrMap(const Elf_Shdr &Sec, } BBEntries.push_back({ID, Offset, Size, *MetadataOrErr}); } - FunctionEntries.push_back({Address, std::move(BBEntries)}); + FunctionEntries.emplace_back(Address, std::move(BBEntries)); } // Either Cur is in the error state, or we have an error in ULEBSizeErr or // MetadataDecodeErr (but not both), but we join all errors here to be safe. |