1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

add a new HiddenDirective member for handling visibility.

llvm-svn: 33197
This commit is contained in:
Chris Lattner 2007-01-14 06:27:21 +00:00
parent 716c76605c
commit a8f6e90cac
2 changed files with 8 additions and 0 deletions

View File

@ -216,6 +216,10 @@ namespace llvm {
/// global as being a weak undefined symbol.
const char *WeakRefDirective; // Defaults to null.
/// 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".
//===--- Dwarf Emission Directives -----------------------------------===//
/// HasLEB128 - True if target asm supports leb128 directives.
@ -429,6 +433,9 @@ namespace llvm {
const char *getWeakRefDirective() const {
return WeakRefDirective;
}
const char *getHiddenDirective() const {
return HiddenDirective;
}
bool hasLEB128() const {
return HasLEB128;
}

View File

@ -62,6 +62,7 @@ TargetAsmInfo::TargetAsmInfo() :
HasDotTypeDotSizeDirective(true),
UsedDirective(0),
WeakRefDirective(0),
HiddenDirective("\t.hidden\t"),
HasLEB128(false),
HasDotLoc(false),
HasDotFile(false),