[lld] 4b45603 - [lld/mac] Tweak two comments and fix style on one variable name

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 30 06:31:20 PDT 2021


Author: Nico Weber
Date: 2021-04-30T09:30:51-04:00
New Revision: 4b456038e4372b7f5199ffcfaaae11364b73837d

URL: https://github.com/llvm/llvm-project/commit/4b456038e4372b7f5199ffcfaaae11364b73837d
DIFF: https://github.com/llvm/llvm-project/commit/4b456038e4372b7f5199ffcfaaae11364b73837d.diff

LOG: [lld/mac] Tweak two comments and fix style on one variable name

Cosmetic, no behavior change.

Added: 
    

Modified: 
    lld/MachO/InputFiles.cpp

Removed: 
    


################################################################################
diff  --git a/lld/MachO/InputFiles.cpp b/lld/MachO/InputFiles.cpp
index bd63618010493..bff7f35d99df7 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<ObjFile>
+  // `sym` is owned by a LazySym, which will be replace<>()d by make<ObjFile>
   // 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<InputFile *> 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);
   }
 }
 


        


More information about the llvm-commits mailing list