aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objcopy/ELF/Object.cpp
diff options
context:
space:
mode:
authorSameer Arora <sameerarora101@fb.com>2020-07-02 14:42:01 -0700
committerSameer Arora <sameerarora101@fb.com>2020-07-02 14:49:47 -0700
commit0fd383e6566482cde8027f5db66ceca86823b771 (patch)
tree4b62446551cfae166b8f2a3b6cae6dbcc1c6f435 /llvm/tools/llvm-objcopy/ELF/Object.cpp
parent4585e3509c2db8c92ceae64ad8d7b073c0090b8f (diff)
downloadllvm-0fd383e6566482cde8027f5db66ceca86823b771.zip
llvm-0fd383e6566482cde8027f5db66ceca86823b771.tar.gz
llvm-0fd383e6566482cde8027f5db66ceca86823b771.tar.bz2
Fix typo and check commit access.
Diffstat (limited to 'llvm/tools/llvm-objcopy/ELF/Object.cpp')
-rw-r--r--llvm/tools/llvm-objcopy/ELF/Object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-objcopy/ELF/Object.cpp b/llvm/tools/llvm-objcopy/ELF/Object.cpp
index 7c1a387..944bfdf 100644
--- a/llvm/tools/llvm-objcopy/ELF/Object.cpp
+++ b/llvm/tools/llvm-objcopy/ELF/Object.cpp
@@ -745,7 +745,7 @@ void SymbolTableSection::prepareForLayout() {
// Reserve proper amount of space in section index table, so we can
// layout sections correctly. We will fill the table with correct
// indexes later in fillShdnxTable.
- if (SectionIndexTable)
+ if (SectionIndexTable)
SectionIndexTable->reserve(Symbols.size());
// Add all of our strings to SymbolNames so that SymbolNames has the right
@@ -1260,7 +1260,7 @@ std::unique_ptr<Object> IHexELFBuilder::build() {
template <class ELFT> void ELFBuilder<ELFT>::setParentSegment(Segment &Child) {
for (Segment &Parent : Obj.segments()) {
// Every segment will overlap with itself but we don't want a segment to
- // be it's own parent so we avoid that situation.
+ // be its own parent so we avoid that situation.
if (&Child != &Parent && segmentOverlapsSegment(Child, Parent)) {
// We want a canonical "most parental" segment but this requires
// inspecting the ParentSegment.