diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-10-03 17:49:19 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-10-03 17:49:19 +0000 |
commit | 1c287c05a69ab8c4a41123c53d2113b28e1e73c9 (patch) | |
tree | c7dbb6914e07cf47007f8f0cb0beec0a53bdcc47 /tools/yaml2obj/yaml2elf.cpp | |
parent | 420bc5679ccfb76b41a47be8a4bf05ececf0cae5 (diff) |
Use getSize instead of data().size(). NFC.
Also assert isFinalized in getSize(). This just reduces the noise from
another patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/yaml2obj/yaml2elf.cpp')
-rw-r--r-- | tools/yaml2obj/yaml2elf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index c98093431a7..60d21599613 100644 --- a/tools/yaml2obj/yaml2elf.cpp +++ b/tools/yaml2obj/yaml2elf.cpp @@ -307,7 +307,7 @@ void ELFState<ELFT>::initStrtabSectionHeader(Elf_Shdr &SHeader, StringRef Name, SHeader.sh_type = ELF::SHT_STRTAB; CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign) << STB.data(); - SHeader.sh_size = STB.data().size(); + SHeader.sh_size = STB.getSize(); SHeader.sh_addralign = 1; } |