From 4b456038e4372b7f5199ffcfaaae11364b73837d Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 30 Apr 2021 09:30:46 -0400 Subject: [PATCH] [lld/mac] Tweak two comments and fix style on one variable name Cosmetic, no behavior change. --- lld/MachO/InputFiles.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lld/MachO/InputFiles.cpp b/lld/MachO/InputFiles.cpp index bd63618..bff7f35 100644 --- a/lld/MachO/InputFiles.cpp +++ b/lld/MachO/InputFiles.cpp @@ -949,17 +949,17 @@ void ArchiveFile::fetch(const object::Archive::Symbol &sym) { "for the member defining symbol " + toMachOString(sym))); - // `sym` is owned by a LazySym, which will be replace<>() by make + // `sym` is owned by a LazySym, which will be replace<>()d by make // and become invalid after that call. Copy it to the stack so we can refer // to it later. - const object::Archive::Symbol sym_copy = sym; + const object::Archive::Symbol symCopy = sym; if (Optional file = loadArchiveMember(mb, modTime, getName(), /*objCOnly=*/false)) { inputFiles.insert(*file); - // ld64 doesn't demangle sym here even with -demangle. Match that, so - // intentionally no call to toMachOString() here. - printArchiveMemberLoad(sym_copy.getName(), *file); + // ld64 doesn't demangle sym here even with -demangle. + // Match that: intentionally don't call toMachOString(). + printArchiveMemberLoad(symCopy.getName(), *file); } } -- 2.7.4