mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
Add support for hidden visibility
llvm-svn: 28968
This commit is contained in:
parent
17cd7df3ac
commit
de354efbfe
23
include/llvm/Support/Visibility.h
Normal file
23
include/llvm/Support/Visibility.h
Normal 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
|
Loading…
Reference in New Issue
Block a user