summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/include/lld/ReaderWriter/ELFLinkingContext.h4
-rw-r--r--lld/lib/Core/Resolver.cpp2
-rw-r--r--lld/lib/ReaderWriter/ELF/Chunk.h2
-rw-r--r--lld/lib/ReaderWriter/ELF/DefaultLayout.h4
-rw-r--r--lld/lib/ReaderWriter/ELF/ELFFile.h2
-rw-r--r--lld/lib/ReaderWriter/ELF/SectionChunks.h2
-rw-r--r--lld/lib/ReaderWriter/FileArchive.cpp2
-rw-r--r--lld/unittests/DriverTests/InputGraphTest.cpp2
8 files changed, 10 insertions, 10 deletions
diff --git a/lld/include/lld/ReaderWriter/ELFLinkingContext.h b/lld/include/lld/ReaderWriter/ELFLinkingContext.h
index a7a5a6c9a41..0dce144d891 100644
--- a/lld/include/lld/ReaderWriter/ELFLinkingContext.h
+++ b/lld/include/lld/ReaderWriter/ELFLinkingContext.h
@@ -88,7 +88,7 @@ public:
}
bool validateImpl(raw_ostream &diagnostics) override;
- /// \brief Does the linker allow dynamic libraries to be linked with ?
+ /// \brief Does the linker allow dynamic libraries to be linked with?
/// This is true when the output mode of the executable is set to be
/// having NMAGIC/OMAGIC
virtual bool allowLinkWithDynamicLibraries() const {
@@ -129,7 +129,7 @@ public:
/// \brief Does the output have dynamic sections.
virtual bool isDynamic() const;
- /// \brief Are we creating a shared library ?
+ /// \brief Are we creating a shared library?
virtual bool isDynamicLibrary() const {
return _outputELFType == llvm::ELF::ET_DYN;
}
diff --git a/lld/lib/Core/Resolver.cpp b/lld/lib/Core/Resolver.cpp
index 1361437c984..ff80d687e37 100644
--- a/lld/lib/Core/Resolver.cpp
+++ b/lld/lib/Core/Resolver.cpp
@@ -178,7 +178,7 @@ void Resolver::doUndefinedAtom(const UndefinedAtom &atom) {
/// \brief Add the section group and the group-child reference members.
bool Resolver::maybeAddSectionGroupOrGnuLinkOnce(const DefinedAtom &atom) {
- // First time adding a group ?
+ // First time adding a group?
bool isFirstTime = _symbolTable.addGroup(atom);
if (!isFirstTime) {
diff --git a/lld/lib/ReaderWriter/ELF/Chunk.h b/lld/lib/ReaderWriter/ELF/Chunk.h
index b306a3b291d..21a818139de 100644
--- a/lld/lib/ReaderWriter/ELF/Chunk.h
+++ b/lld/lib/ReaderWriter/ELF/Chunk.h
@@ -73,7 +73,7 @@ public:
// Memory size of the chunk
uint64_t memSize() const { return _msize; }
void setMemSize(uint64_t msize) { _msize = msize; }
- // Whats the contentType of the chunk ?
+ // Whats the contentType of the chunk?
virtual int getContentType() const = 0;
// Writer the chunk
virtual void write(ELFWriter *writer, TargetLayout<ELFT> &layout,
diff --git a/lld/lib/ReaderWriter/ELF/DefaultLayout.h b/lld/lib/ReaderWriter/ELF/DefaultLayout.h
index ec56c23098e..3cf702a25db 100644
--- a/lld/lib/ReaderWriter/ELF/DefaultLayout.h
+++ b/lld/lib/ReaderWriter/ELF/DefaultLayout.h
@@ -600,7 +600,7 @@ template <class ELFT> void DefaultLayout<ELFT>::assignSectionsToSegments() {
ScopedTask task(getDefaultDomain(), "assignSectionsToSegments");
ELFLinkingContext::OutputMagic outputMagic = _context.getOutputMagic();
// TODO: Do we want to give a chance for the targetHandlers
- // to sort segments in an arbitrary order ?
+ // to sort segments in an arbitrary order?
// sort the sections by their order as defined by the layout
std::stable_sort(_sections.begin(), _sections.end(),
[](Chunk<ELFT> *A, Chunk<ELFT> *B) {
@@ -702,7 +702,7 @@ template <class ELFT> void DefaultLayout<ELFT>::assignSectionsToSegments() {
template <class ELFT> void DefaultLayout<ELFT>::assignFileOffsets() {
// TODO: Do we want to give a chance for the targetHandlers
- // to sort segments in an arbitrary order ?
+ // to sort segments in an arbitrary order?
std::sort(_segments.begin(), _segments.end(), Segment<ELFT>::compareSegments);
int ordinal = 0;
// Compute the number of segments that might be needed, so that the
diff --git a/lld/lib/ReaderWriter/ELF/ELFFile.h b/lld/lib/ReaderWriter/ELF/ELFFile.h
index c4ac4ec7577..2aab28c4860 100644
--- a/lld/lib/ReaderWriter/ELF/ELFFile.h
+++ b/lld/lib/ReaderWriter/ELF/ELFFile.h
@@ -605,7 +605,7 @@ template <class ELFT> error_code ELFFile<ELFT>::createAtoms() {
for (auto &i : _sectionSymbols) {
const Elf_Shdr *section = i.first;
- // Check if need to create atoms for this section ?
+ // Check if need to create atoms for this section?
if ((ignoreCreateAtomsForSection(section)))
continue;
diff --git a/lld/lib/ReaderWriter/ELF/SectionChunks.h b/lld/lib/ReaderWriter/ELF/SectionChunks.h
index 05b96ed5136..0185ef27b70 100644
--- a/lld/lib/ReaderWriter/ELF/SectionChunks.h
+++ b/lld/lib/ReaderWriter/ELF/SectionChunks.h
@@ -429,7 +429,7 @@ public:
_virtualAddr = addr;
}
- // Is the section loadable ?
+ // Is the section loadable?
inline bool isLoadableSection() const { return _isLoadableSection; }
// Set section Loadable
diff --git a/lld/lib/ReaderWriter/FileArchive.cpp b/lld/lib/ReaderWriter/FileArchive.cpp
index 1749ed48d4e..82bceaccb56 100644
--- a/lld/lib/ReaderWriter/FileArchive.cpp
+++ b/lld/lib/ReaderWriter/FileArchive.cpp
@@ -67,7 +67,7 @@ public:
return result[0].release();
}
- /// \brief Load all members of the archive ?
+ /// \brief Load all members of the archive?
virtual bool isWholeArchive() const { return _isWholeArchive; }
/// \brief parse each member
diff --git a/lld/unittests/DriverTests/InputGraphTest.cpp b/lld/unittests/DriverTests/InputGraphTest.cpp
index 9ab77c6a75c..a5cfef1d80a 100644
--- a/lld/unittests/DriverTests/InputGraphTest.cpp
+++ b/lld/unittests/DriverTests/InputGraphTest.cpp
@@ -40,7 +40,7 @@ class MyExpandFileNode : public SimpleFileNode {
public:
MyExpandFileNode(StringRef path) : SimpleFileNode(path) {}
- /// \brief How do we want to expand the current node ?
+ /// \brief How do we want to expand the current node?
bool shouldExpand() const override { return true; }
/// \brief Get the elements that we want to expand with.
OpenPOWER on IntegriCloud