[PATCH] D135877: [lld/mac] Make two local variables const
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 13 09:03:09 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGad030740b2db: [lld/mac] Make two local variables const (authored by thakis).
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135877/new/
https://reviews.llvm.org/D135877
Files:
lld/MachO/InputFiles.cpp
Index: lld/MachO/InputFiles.cpp
===================================================================
--- lld/MachO/InputFiles.cpp
+++ lld/MachO/InputFiles.cpp
@@ -807,7 +807,7 @@
// subsection here.
if (sections[i]->doneSplitting) {
for (size_t j = 0; j < symbolIndices.size(); ++j) {
- uint32_t symIndex = symbolIndices[j];
+ const uint32_t symIndex = symbolIndices[j];
const NList &sym = nList[symIndex];
StringRef name = strtab + sym.n_strx;
uint64_t symbolOffset = sym.n_value - sectionAddr;
@@ -833,7 +833,7 @@
return nList[lhs].n_value < nList[rhs].n_value;
});
for (size_t j = 0; j < symbolIndices.size(); ++j) {
- uint32_t symIndex = symbolIndices[j];
+ const uint32_t symIndex = symbolIndices[j];
const NList &sym = nList[symIndex];
StringRef name = strtab + sym.n_strx;
Subsection &subsec = subsections.back();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135877.467504.patch
Type: text/x-patch
Size: 926 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221013/d3792855/attachment.bin>
More information about the llvm-commits
mailing list