[llvm] c9b6d64 - Fix @llvm.global_ctors docs (NFC)
Keith Smiley via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 7 11:24:21 PST 2022
Author: Keith Smiley
Date: 2022-12-07T11:24:08-08:00
New Revision: c9b6d641f0d65c717207b215815412244d8529b0
URL: https://github.com/llvm/llvm-project/commit/c9b6d641f0d65c717207b215815412244d8529b0
DIFF: https://github.com/llvm/llvm-project/commit/c9b6d641f0d65c717207b215815412244d8529b0.diff
LOG: Fix @llvm.global_ctors docs (NFC)
Added:
Modified:
llvm/include/llvm/Transforms/Utils/ModuleUtils.h
llvm/lib/CodeGen/TargetPassConfig.cpp
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/ModuleUtils.h b/llvm/include/llvm/Transforms/Utils/ModuleUtils.h
index 335cf7acc2f7e..a307a3a7e7669 100644
--- a/llvm/include/llvm/Transforms/Utils/ModuleUtils.h
+++ b/llvm/include/llvm/Transforms/Utils/ModuleUtils.h
@@ -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);
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index 72e11157869e2..87f29b3173d5c 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -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)
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
index 497ba8d0b2f7f..5b82609464464 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
@@ -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
More information about the llvm-commits
mailing list