diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-07-26 19:03:47 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-07-26 19:04:23 +0000 |
commit | 7fa27ce4a07f19b07799a767fc29416f3b625afb (patch) | |
tree | 27825c83636c4de341eb09a74f49f5d38a15d165 /llvm/lib/Object/OffloadBinary.cpp | |
parent | e3b557809604d036af6e00c60f012c2025b59a5e (diff) |
Diffstat (limited to 'llvm/lib/Object/OffloadBinary.cpp')
-rw-r--r-- | llvm/lib/Object/OffloadBinary.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Object/OffloadBinary.cpp b/llvm/lib/Object/OffloadBinary.cpp index d8cdcdc21d39..342327daf7e4 100644 --- a/llvm/lib/Object/OffloadBinary.cpp +++ b/llvm/lib/Object/OffloadBinary.cpp @@ -209,8 +209,8 @@ OffloadBinary::write(const OffloadingImage &OffloadingData) { // Create a null-terminated string table with all the used strings. StringTableBuilder StrTab(StringTableBuilder::ELF); for (auto &KeyAndValue : OffloadingData.StringData) { - StrTab.add(KeyAndValue.getKey()); - StrTab.add(KeyAndValue.getValue()); + StrTab.add(KeyAndValue.first); + StrTab.add(KeyAndValue.second); } StrTab.finalize(); @@ -250,8 +250,8 @@ OffloadBinary::write(const OffloadingImage &OffloadingData) { OS << StringRef(reinterpret_cast<char *>(&TheEntry), sizeof(Entry)); for (auto &KeyAndValue : OffloadingData.StringData) { uint64_t Offset = sizeof(Header) + sizeof(Entry) + StringEntrySize; - StringEntry Map{Offset + StrTab.getOffset(KeyAndValue.getKey()), - Offset + StrTab.getOffset(KeyAndValue.getValue())}; + StringEntry Map{Offset + StrTab.getOffset(KeyAndValue.first), + Offset + StrTab.getOffset(KeyAndValue.second)}; OS << StringRef(reinterpret_cast<char *>(&Map), sizeof(StringEntry)); } StrTab.write(OS); |