From 7bcfc9950bac0f411f9671e8d6ce483bd219727e Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 15 Dec 2011 21:59:03 +0000 Subject: [asan] fix a bug (issue 19) where dlclose and the following mmap caused a false positive. compiler part. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146688 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Utils/ModuleUtils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/llvm/Transforms/Utils/ModuleUtils.h') diff --git a/include/llvm/Transforms/Utils/ModuleUtils.h b/include/llvm/Transforms/Utils/ModuleUtils.h index d7e12a6..2c0ec9b 100644 --- a/include/llvm/Transforms/Utils/ModuleUtils.h +++ b/include/llvm/Transforms/Utils/ModuleUtils.h @@ -25,6 +25,9 @@ class Function; /// http://llvm.org/docs/LangRef.html#intg_global_ctors void appendToGlobalCtors(Module &M, Function *F, int Priority); +/// Same as appendToGlobalCtors(), but for global dtors. +void appendToGlobalDtors(Module &M, Function *F, int Priority); + } // End llvm namespace #endif // LLVM_TRANSFORMS_UTILS_MODULE_UTILS_H -- cgit v1.1