summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
diff options
context:
space:
mode:
authorKazuaki Ishizaki <ishizaki@jp.ibm.com>2020-01-06 10:21:05 -0800
committerFangrui Song <maskray@google.com>2020-01-06 10:25:48 -0800
commit7ae3d335467a24faa80ebd9b31446c649570ca0c (patch)
tree2c198b4fca6d45c20d7a8c0c805847f7ce8bf72b /lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
parent5b24c088171d3bd7a8ff559c82926e5d4b04f032 (diff)
downloadbcm5719-llvm-7ae3d335467a24faa80ebd9b31446c649570ca0c.tar.gz
bcm5719-llvm-7ae3d335467a24faa80ebd9b31446c649570ca0c.zip
[lld] Fix trivial typos in comments
Reviewed By: ruiu, MaskRay Differential Revision: https://reviews.llvm.org/D72196
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp')
-rw-r--r--lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
index ab7ea7e07f2..17b45b9ca82 100644
--- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
+++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
@@ -1267,7 +1267,7 @@ void TrieNode::addSymbol(const Export& entry,
edge._child->addSymbol(entry, allocator, allNodes);
return;
}
- // See if string has commmon prefix with existing edge.
+ // See if string has common prefix with existing edge.
for (int n=edgeStr.size()-1; n > 0; --n) {
if (partialStr.substr(0, n).equals(edgeStr.substr(0, n))) {
// Splice in new node: was A -> C, now A -> B -> C
@@ -1351,7 +1351,7 @@ bool TrieNode::updateOffset(uint32_t& offset) {
nodeSize += llvm::getULEB128Size(nodeSize);
}
// Compute size of all child edges.
- ++nodeSize; // Byte for number of chidren.
+ ++nodeSize; // Byte for number of children.
for (TrieEdge &edge : _children) {
nodeSize += edge._subString.size() + 1 // String length.
+ llvm::getULEB128Size(edge._child->_trieOffset); // Offset len.
OpenPOWER on IntegriCloud