mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
add a new HiddenDirective member for handling visibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33197 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5b3a48d853
commit
9784bc73c3
@ -216,6 +216,10 @@ namespace llvm {
|
|||||||
/// global as being a weak undefined symbol.
|
/// global as being a weak undefined symbol.
|
||||||
const char *WeakRefDirective; // Defaults to null.
|
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 -----------------------------------===//
|
//===--- Dwarf Emission Directives -----------------------------------===//
|
||||||
|
|
||||||
/// HasLEB128 - True if target asm supports leb128 directives.
|
/// HasLEB128 - True if target asm supports leb128 directives.
|
||||||
@ -429,6 +433,9 @@ namespace llvm {
|
|||||||
const char *getWeakRefDirective() const {
|
const char *getWeakRefDirective() const {
|
||||||
return WeakRefDirective;
|
return WeakRefDirective;
|
||||||
}
|
}
|
||||||
|
const char *getHiddenDirective() const {
|
||||||
|
return HiddenDirective;
|
||||||
|
}
|
||||||
bool hasLEB128() const {
|
bool hasLEB128() const {
|
||||||
return HasLEB128;
|
return HasLEB128;
|
||||||
}
|
}
|
||||||
|
@ -62,6 +62,7 @@ TargetAsmInfo::TargetAsmInfo() :
|
|||||||
HasDotTypeDotSizeDirective(true),
|
HasDotTypeDotSizeDirective(true),
|
||||||
UsedDirective(0),
|
UsedDirective(0),
|
||||||
WeakRefDirective(0),
|
WeakRefDirective(0),
|
||||||
|
HiddenDirective("\t.hidden\t"),
|
||||||
HasLEB128(false),
|
HasLEB128(false),
|
||||||
HasDotLoc(false),
|
HasDotLoc(false),
|
||||||
HasDotFile(false),
|
HasDotFile(false),
|
||||||
|
Loading…
Reference in New Issue
Block a user