diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-29 18:35:00 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-29 18:35:00 +0000 |
commit | 6f9896fcc81a1128b5f436d1763cc6213745adf1 (patch) | |
tree | 89f99df6a320347cd98adf490edeea24432c86f6 /include/llvm/Target/TargetAsmInfo.h | |
parent | c6c98af9e5814e8066c82f20ca11cf646a5fc289 (diff) | |
download | external_llvm-6f9896fcc81a1128b5f436d1763cc6213745adf1.zip external_llvm-6f9896fcc81a1128b5f436d1763cc6213745adf1.tar.gz external_llvm-6f9896fcc81a1128b5f436d1763cc6213745adf1.tar.bz2 |
Implement protected visibility. This partly implements PR1363. Linker
should be taught to deal with protected symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36565 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetAsmInfo.h')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 60de430..b13a3fb 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -256,7 +256,11 @@ namespace llvm { /// HiddenDirective - This directive, if non-null, is used to declare a /// global or function as having hidden visibility. const char *HiddenDirective; // Defaults to "\t.hidden\t". - + + /// ProtectedDirective - This directive, if non-null, is used to declare a + /// global or function as having protected visibility. + const char *ProtectedDirective; // Defaults to "\t.protected\t". + //===--- Dwarf Emission Directives -----------------------------------===// /// AbsoluteSectionOffsets - True if we should emit abolute section @@ -523,6 +527,9 @@ namespace llvm { const char *getHiddenDirective() const { return HiddenDirective; } + const char *getProtectedDirective() const { + return ProtectedDirective; + } bool isAbsoluteSectionOffsets() const { return AbsoluteSectionOffsets; } |