Fix @llvm.global_ctors docs (NFC)
authorKeith Smiley <keithbsmiley@gmail.com>
Wed, 7 Dec 2022 19:23:42 +0000 (11:23 -0800)
committerKeith Smiley <keithbsmiley@gmail.com>
Wed, 7 Dec 2022 19:24:08 +0000 (11:24 -0800)
llvm/include/llvm/Transforms/Utils/ModuleUtils.h
llvm/lib/CodeGen/TargetPassConfig.cpp
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp

index 335cf7a..a307a3a 100644 (file)
@@ -33,7 +33,7 @@ class Type;
 /// Append F to the list of global ctors of module M with the given Priority.
 /// This wraps the function in the appropriate structure and stores it along
 /// side other global constructors. For details see
-/// http://llvm.org/docs/LangRef.html#intg_global_ctors
+/// https://llvm.org/docs/LangRef.html#the-llvm-global-ctors-global-variable
 void appendToGlobalCtors(Module &M, Function *F, int Priority,
                          Constant *Data = nullptr);
 
index 72e1115..87f29b3 100644 (file)
@@ -905,7 +905,7 @@ void TargetPassConfig::addIRPasses() {
   addPass(&ShadowStackGCLoweringID);
   addPass(createLowerConstantIntrinsicsPass());
 
-  // For MachO, lower @llvm.global_dtors into @llvm_global_ctors with
+  // For MachO, lower @llvm.global_dtors into @llvm.global_ctors with
   // __cxa_atexit() calls to avoid emitting the deprecated __mod_term_func.
   if (TM->getTargetTriple().isOSBinFormatMachO() &&
       TM->Options.LowerGlobalDtorsViaCxaAtExit)
index 497ba8d..5b82609 100644 (file)
@@ -414,7 +414,7 @@ void WebAssemblyPassConfig::addIRPasses() {
   // Add signatures to prototype-less function declarations
   addPass(createWebAssemblyAddMissingPrototypes());
 
-  // Lower .llvm.global_dtors into .llvm_global_ctors with __cxa_atexit calls.
+  // Lower .llvm.global_dtors into .llvm.global_ctors with __cxa_atexit calls.
   addPass(createLowerGlobalDtorsLegacyPass());
 
   // Fix function bitcasts, as WebAssembly requires caller and callee signatures