Add support for hidden visibility

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28968 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-06-28 21:38:04 +00:00
parent b916ba1fe4
commit c521409d4c

View File

@ -0,0 +1,23 @@
//===-- llvm/Support/Visibility.h - visibility(hidden) support --*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Chris Lattner and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines the VISIBILITY_HIDDEN macro, used for marking classes with
// the GCC-specific visibility("hidden") attribute.
//
//===----------------------------------------------------------------------===//
#ifndef VISIBILITY_HIDDEN
#if __GNUC__ >= 4
#define VISIBILITY_HIDDEN __attribute__ ((visibility("hidden")))
#else
#define VISIBILITY_HIDDEN
#endif
#endif