[lld/mac] make a few "named parameter comments" more consistent
authorNico Weber <thakis@chromium.org>
Thu, 22 Apr 2021 14:44:56 +0000 (10:44 -0400)
committerNico Weber <thakis@chromium.org>
Thu, 22 Apr 2021 14:48:03 +0000 (10:48 -0400)
Most of LLVM and almost all of lld/MachO uses `/*foo=*/bar` style.
No behavior change.

lld/MachO/SyntheticSections.cpp
lld/MachO/UnwindInfoSection.cpp

index 66e1eff..1734b12 100644 (file)
@@ -1102,7 +1102,7 @@ void macho::createSyntheticSymbols() {
   auto addHeaderSymbol = [](const char *name) {
     symtab->addSynthetic(name, in.header->isec, 0,
                          /*privateExtern=*/true,
-                         /*includeInSymtab*/ false);
+                         /*includeInSymtab=*/false);
   };
 
   switch (config->outputType) {
@@ -1114,13 +1114,13 @@ void macho::createSyntheticSymbols() {
     // Otherwise, it's an absolute symbol.
     if (config->isPic)
       symtab->addSynthetic("__mh_execute_header", in.header->isec, 0,
-                           /*privateExtern*/ false,
-                           /*includeInSymbtab*/ true);
+                           /*privateExtern=*/false,
+                           /*includeInSymbtab=*/true);
     else
       symtab->addSynthetic("__mh_execute_header",
                            /*isec*/ nullptr, 0,
-                           /*privateExtern*/ false,
-                           /*includeInSymbtab*/ true);
+                           /*privateExtern=*/false,
+                           /*includeInSymbtab=*/true);
     break;
 
     // The following symbols are  N_SECT symbols, even though the header is not
index b946424..924b40b 100644 (file)
@@ -179,8 +179,9 @@ void UnwindInfoSectionImpl<Ptr>::prepareRelocations(InputSection *isec) {
       // symbols for them in the GOT.
       Symbol *&s = personalityTable[{referentIsec, r.addend}];
       if (s == nullptr) {
-        s = make<Defined>("<internal>", nullptr, referentIsec, r.addend, 0,
-                          false, false, false);
+        s = make<Defined>("<internal>", /*file=*/nullptr, referentIsec,
+                          r.addend, /*size=*/0, /*isWeakDef=*/false,
+                          /*isExternal=*/false, /*isPrivateExtern=*/false);
         in.got->addEntry(s);
       }
       r.referent = s;