From 78cd1ddfbbec9e32ae7cacb1a9a0f1ff56094696 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Thu, 25 Feb 2016 22:05:19 +0000 Subject: [PATCH] Support: Give ManagedStatic's helper object library visibility It doesn't make much sense to export these symbols. llvm-svn: 261931 --- llvm/include/llvm/Support/ManagedStatic.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/llvm/include/llvm/Support/ManagedStatic.h b/llvm/include/llvm/Support/ManagedStatic.h index 2e131e4..3a34bdb 100644 --- a/llvm/include/llvm/Support/ManagedStatic.h +++ b/llvm/include/llvm/Support/ManagedStatic.h @@ -22,17 +22,18 @@ namespace llvm { /// object_creator - Helper method for ManagedStatic. template -void* object_creator() { +LLVM_LIBRARY_VISIBILITY void* object_creator() { return new C(); } /// object_deleter - Helper method for ManagedStatic. /// -template struct object_deleter { - static void call(void * Ptr) { delete (T*)Ptr; } +template struct LLVM_LIBRARY_VISIBILITY object_deleter { + static void call(void *Ptr) { delete (T *)Ptr; } }; -template struct object_deleter { - static void call(void * Ptr) { delete[] (T*)Ptr; } +template +struct LLVM_LIBRARY_VISIBILITY object_deleter { + static void call(void *Ptr) { delete[](T *)Ptr; } }; /// ManagedStaticBase - Common base class for ManagedStatic instances. -- 2.7.4