summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Visibility.h
blob: eb0c649a55f496c27777b4f11409f938d452dd3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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