diff options
Diffstat (limited to 'llvm/docs/LangRef.rst')
-rw-r--r-- | llvm/docs/LangRef.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 0c1d87bc915..f9232e0b483 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -6482,12 +6482,12 @@ The '``llvm.global_ctors``' Global Variable @llvm.global_ctors = appending global [1 x %0] [%0 { i32 65535, void ()* @ctor, i8* @data }] The ``@llvm.global_ctors`` array contains a list of constructor -functions, priorities, and an optional associated global or function. +functions, priorities, and an associated global or function. The functions referenced by this array will be called in ascending order of priority (i.e. lowest first) when the module is loaded. The order of functions with the same priority is not defined. -If the third field is present, non-null, and points to a global variable +If the third field is non-null, and points to a global variable or function, the initializer function will only run if the associated data from the current module is not discarded. @@ -6502,12 +6502,12 @@ The '``llvm.global_dtors``' Global Variable @llvm.global_dtors = appending global [1 x %0] [%0 { i32 65535, void ()* @dtor, i8* @data }] The ``@llvm.global_dtors`` array contains a list of destructor -functions, priorities, and an optional associated global or function. +functions, priorities, and an associated global or function. The functions referenced by this array will be called in descending order of priority (i.e. highest first) when the module is unloaded. The order of functions with the same priority is not defined. -If the third field is present, non-null, and points to a global variable +If the third field is non-null, and points to a global variable or function, the destructor function will only run if the associated data from the current module is not discarded. |