diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-19 04:34:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-19 04:34:02 +0000 |
commit | 71eae713153e564ec743c5c4162ff258c255de78 (patch) | |
tree | 01b79de1395d38dbeefafc085c6255b8d688aa5e /include | |
parent | a756b1d914eaf4ad610d29398e5831b394bd1547 (diff) | |
download | external_llvm-71eae713153e564ec743c5c4162ff258c255de78.zip external_llvm-71eae713153e564ec743c5c4162ff258c255de78.tar.gz external_llvm-71eae713153e564ec743c5c4162ff258c255de78.tar.bz2 |
move production of .reference directives for static ctor/dtor list on
darwin into common code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 6d01278..1368e1f 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -36,7 +36,13 @@ namespace llvm { /// HasMachoZeroFillDirective - True if this is a MachO target that supports /// the macho-specific .zerofill directive for emitting BSS Symbols. - bool HasMachoZeroFillDirective; // Default is false. + bool HasMachoZeroFillDirective; // Default is false. + + /// HasStaticCtorDtorReferenceInStaticMode - True if the compiler should + /// emit a ".reference .constructors_used" or ".reference .destructors_used" + /// directive after the a static ctor/dtor list. This directive is only + /// emitted in Static relocation model. + bool HasStaticCtorDtorReferenceInStaticMode; // Default is false. /// NeedsSet - True if target asm treats expressions in data directives /// as linktime-relocatable. For assembly-time computation, we need to @@ -314,7 +320,9 @@ namespace llvm { // Accessors. // bool hasMachoZeroFillDirective() const { return HasMachoZeroFillDirective; } - + bool hasStaticCtorDtorReferenceInStaticMode() const { + return HasStaticCtorDtorReferenceInStaticMode; + } const char *getNonexecutableStackDirective() const { return NonexecutableStackDirective; } |