From c9b6d641f0d65c717207b215815412244d8529b0 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Wed, 7 Dec 2022 11:23:42 -0800 Subject: [PATCH] Fix @llvm.global_ctors docs (NFC) --- llvm/include/llvm/Transforms/Utils/ModuleUtils.h | 2 +- llvm/lib/CodeGen/TargetPassConfig.cpp | 2 +- llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/Transforms/Utils/ModuleUtils.h b/llvm/include/llvm/Transforms/Utils/ModuleUtils.h index 335cf7a..a307a3a 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 72e1115..87f29b3 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 497ba8d..5b82609 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 -- 2.7.4