Fix "don't" typos missed in previous commit

llvm-svn: 196054
This commit is contained in:
Alp Toker 2013-12-01 23:58:45 +00:00
parent 32e8beff89
commit 79d0c1c4f7
7 changed files with 14 additions and 14 deletions

View File

@ -45,9 +45,9 @@ public:
/// creates.
enum class OutputMagic : uint8_t {
DEFAULT, // The default mode, no specific magic set
NMAGIC, // Disallow shared libraries and dont align sections
NMAGIC, // Disallow shared libraries and don't align sections
// PageAlign Data, Mark Text Segment/Data segment RW
OMAGIC // Disallow shared libraries and dont align sections,
OMAGIC // Disallow shared libraries and don't align sections,
// Mark Text Segment/Data segment RW
};

View File

@ -639,7 +639,7 @@ template <class ELFT> void DefaultLayout<ELFT>::assignSectionsToSegments() {
lookupSectionFlag &= ~(llvm::ELF::SHF_TLS);
Segment<ELFT> *segment;
// We need a separate segment for sections that dont have
// We need a separate segment for sections that don't have
// the segment type to be PT_LOAD
if (segmentType != llvm::ELF::PT_LOAD) {
const AdditionalSegmentKey key(segmentType, lookupSectionFlag);
@ -706,7 +706,7 @@ template <class ELFT> void DefaultLayout<ELFT>::assignFileOffsets() {
uint64_t offset = 0;
for (auto si : _segments) {
si->setOrdinal(++ordinal);
// Dont assign offsets for segments that are not loadable
// Don't assign offsets for segments that are not loadable
if (si->segmentType() != llvm::ELF::PT_LOAD)
continue;
si->assignOffsets(offset);
@ -742,7 +742,7 @@ DefaultLayout<ELFT>::assignVirtualAddress() {
while (true) {
for (auto si : _segments) {
si->finalize();
// Dont add PT_NULL segments into the program header
// Don't add PT_NULL segments into the program header
if (si->segmentType() != llvm::ELF::PT_NULL)
newSegmentHeaderAdded = _programHeader->addSegment(si);
}
@ -778,7 +778,7 @@ DefaultLayout<ELFT>::assignVirtualAddress() {
} else {
si->setVAddr(virtualAddress);
// The first segment has the virtualAddress set to the base address as
// we have added the file header and the program header dont align the
// we have added the file header and the program header don't align the
// first segment to the pagesize
si->assignVirtualAddress(address);
si->setMemSize(address - virtualAddress);
@ -841,7 +841,7 @@ DefaultLayout<ELFT>::assignOffsetsForMiscSections() {
uint64_t fileoffset = 0;
uint64_t size = 0;
for (auto si : _segments) {
// Dont calculate offsets from non loadable segments
// Don't calculate offsets from non loadable segments
if ((si->segmentType() != llvm::ELF::PT_LOAD) &&
(si->segmentType() != llvm::ELF::PT_NULL))
continue;

View File

@ -122,7 +122,7 @@ template <class ELFT> void ExecutableWriter<ELFT>::finalizeDefaultAtomValues() {
auto bssSection = this->_layout->findOutputSection(".bss");
// If we dont find a bss section, then dont set these values
// If we don't find a bss section, then don't set these values
if (bssSection) {
(*bssStartAtomIter)->_virtualAddr = bssSection->virtualAddr();
(*bssEndAtomIter)->_virtualAddr =

View File

@ -188,7 +188,7 @@ void OutputELFWriter<ELFT>::buildDynamicSymbolTable(const File &file) {
// The dynamic symbol table need to be sorted earlier because the hash
// table needs to be built using the dynamic symbol table. It would be
// late to sort the symbols due to that in finalize. In the dynamic symbol
// table finalize, we call the symbol table finalize and we dont want to
// table finalize, we call the symbol table finalize and we don't want to
// sort again
_dynamicSymbolTable->sortSymbols();

View File

@ -790,7 +790,7 @@ void SymbolTable<ELFT>::addUndefinedAtom(Elf_Sym &sym,
}
/// Add a symbol to the symbol Table, definedAtoms which get added to the symbol
/// section dont have their virtual addresses set at the time of adding the
/// section don't have their virtual addresses set at the time of adding the
/// symbol to the symbol table(Example: dynamic symbols), the addresses needs
/// to be updated in the table before writing the dynamic symbol table
/// information
@ -885,7 +885,7 @@ public:
virtual void finalize() {
// Defined symbols which have been added into the dynamic symbol table
// dont have their addresses known until addresses have been assigned
// don't have their addresses known until addresses have been assigned
// so lets update the symbol values after they have got assigned
for (auto &ste: this->_symbolTable) {
const lld::AtomLayout *atomLayout = ste._atomLayout;
@ -894,7 +894,7 @@ public:
ste._symbol.st_value = atomLayout->_virtualAddr;
}
// Dont sort the symbols
// Don't sort the symbols
SymbolTable<ELFT>::finalize(false);
}

View File

@ -570,7 +570,7 @@ template <class ELFT> void Segment<ELFT>::assignVirtualAddress(uint64_t &addr) {
tlsStartAddr += section->memSize();
section->setMemSize(addr + section->memSize() - section->virtualAddr());
// TBSS section is special that it doesnot contribute to memory of any
// segment, If we see a tbss section, dont add memory size to addr
// segment, If we see a tbss section, don't add memory size to addr
// The fileOffset is automatically taken care of since TBSS section does
// not endup using file size
if (section->order() != DefaultLayout<ELFT>::ORDER_TBSS)

View File

@ -1,5 +1,5 @@
# This tests the functionality of handling BSS symbols
# BSS symbols dont occupy file content and are associated with typeZeroFill
# BSS symbols don't occupy file content and are associated with typeZeroFill
# Any typeZeroFill content wouldnot have space reserved in the file to store
# its content