mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Revert "Use getSize instead of data().size(). NFC."
This reverts commit r283125. lld needs to be updated. llvm-svn: 283127
This commit is contained in:
parent
eb23beed3a
commit
5dfc37acfc
@ -61,7 +61,7 @@ public:
|
||||
return StringIndexMap;
|
||||
}
|
||||
|
||||
size_t getSize() const;
|
||||
size_t getSize() const { return Size; }
|
||||
void clear();
|
||||
|
||||
private:
|
||||
|
@ -882,7 +882,7 @@ void MachObjectWriter::writeObject(MCAssembler &Asm,
|
||||
sizeof(MachO::nlist_64) :
|
||||
sizeof(MachO::nlist));
|
||||
writeSymtabLoadCommand(SymbolTableOffset, NumSymTabSymbols,
|
||||
StringTableOffset, StringTable.getSize());
|
||||
StringTableOffset, StringTable.data().size());
|
||||
|
||||
writeDysymtabLoadCommand(FirstLocalSymbol, NumLocalSymbols,
|
||||
FirstExternalSymbol, NumExternalSymbols,
|
||||
|
@ -34,11 +34,6 @@ StringTableBuilder::StringTableBuilder(Kind K, unsigned Alignment)
|
||||
}
|
||||
}
|
||||
|
||||
size_t StringTableBuilder::getSize() const {
|
||||
assert(isFinalized());
|
||||
return Size;
|
||||
}
|
||||
|
||||
typedef std::pair<CachedHash<StringRef>, size_t> StringPair;
|
||||
|
||||
// Returns the character at Pos from end of a string.
|
||||
|
@ -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.getSize();
|
||||
SHeader.sh_size = STB.data().size();
|
||||
SHeader.sh_addralign = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user