eb0c649a55f496c27777b4f11409f938d452dd3b
[oota-llvm.git] / include / llvm / Support / Visibility.h
1 //===-- llvm/Support/Visibility.h - visibility(hidden) support --*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by Chris Lattner and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the VISIBILITY_HIDDEN macro, used for marking classes with
11 // the GCC-specific visibility("hidden") attribute.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef VISIBILITY_HIDDEN
16
17 #if __GNUC__ >= 4
18 #define VISIBILITY_HIDDEN __attribute__ ((visibility("hidden")))
19 #else
20 #define VISIBILITY_HIDDEN
21 #endif
22
23 #endif