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
___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits