[llvm-commits] CVS: llvm/include/llvm/Support/Visibility.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 28 14:38:16 PDT 2006
Changes in directory llvm/include/llvm/Support:
Visibility.h added (r1.1)
---
Log message:
Add support for hidden visibility
---
Diffs of the changes: (+23 -0)
Visibility.h | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+)
Index: llvm/include/llvm/Support/Visibility.h
diff -c /dev/null llvm/include/llvm/Support/Visibility.h:1.1
*** /dev/null Wed Jun 28 16:38:14 2006
--- llvm/include/llvm/Support/Visibility.h Wed Jun 28 16:38:04 2006
***************
*** 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
More information about the llvm-commits
mailing list