LLVM API Documentation

Visibility.h

Go to the documentation of this file.
00001 //===-- llvm/Support/Visibility.h - visibility(hidden) support --*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file was developed by Chris Lattner and is distributed under
00006 // the University of Illinois Open Source License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file defines the VISIBILITY_HIDDEN macro, used for marking classes with
00011 // the GCC-specific visibility("hidden") attribute.
00012 //
00013 //===----------------------------------------------------------------------===//
00014 
00015 #ifndef VISIBILITY_HIDDEN
00016 
00017 #if __GNUC__ >= 4
00018 #define VISIBILITY_HIDDEN __attribute__ ((visibility("hidden")))
00019 #else
00020 #define VISIBILITY_HIDDEN
00021 #endif
00022 
00023 #endif