1
0
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:
Rafael Espindola 2016-10-03 18:01:10 +00:00
parent eb23beed3a
commit 5dfc37acfc
4 changed files with 3 additions and 8 deletions

View File

@ -61,7 +61,7 @@ public:
return StringIndexMap;
}
size_t getSize() const;
size_t getSize() const { return Size; }
void clear();
private:

View File

@ -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,

View File

@ -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.

View File

@ -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;
}