diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-02 00:34:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-02 00:34:36 +0000 |
commit | 80ec2792b2b271eca55743a3cc4c8bca214fa705 (patch) | |
tree | 6315c4827b431ed704a0a998ebe2ebb076a45d94 /include/llvm | |
parent | f9f1adbcbbf2420c7acf13946c1877473d650294 (diff) |
convert ctors/dtors section to be in TLOF instead of
TAI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 16 | ||||
-rw-r--r-- | include/llvm/Target/TargetLoweringObjectFile.h | 13 |
2 files changed, 12 insertions, 17 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 0facf32577..0eff044c45 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -210,16 +210,6 @@ namespace llvm { /// table. const char *JumpTableDirective; - /// StaticCtorsSection - This is the directive that is emitted to switch to - /// a section to emit the static constructor list. - /// Defaults to "\t.section .ctors,\"aw\",@progbits". - const char *StaticCtorsSection; - - /// StaticDtorsSection - This is the directive that is emitted to switch to - /// a section to emit the static destructor list. - /// Defaults to "\t.section .dtors,\"aw\",@progbits". - const char *StaticDtorsSection; - //===--- Global Variable Emission Directives --------------------------===// /// GlobalDirective - This is the directive used to declare a global entity. @@ -533,12 +523,6 @@ namespace llvm { const char *getSectionEndDirectiveSuffix() const { return SectionEndDirectiveSuffix; } - const char *getStaticCtorsSection() const { - return StaticCtorsSection; - } - const char *getStaticDtorsSection() const { - return StaticDtorsSection; - } const char *getGlobalDirective() const { return GlobalDirective; } diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h index f6b1220e6c..ec6b697585 100644 --- a/include/llvm/Target/TargetLoweringObjectFile.h +++ b/include/llvm/Target/TargetLoweringObjectFile.h @@ -50,6 +50,14 @@ protected: /// section for constants. const MCSection *ReadOnlySection; + /// StaticCtorSection - This section contains the static constructor pointer + /// list. + const MCSection *StaticCtorSection; + + /// StaticDtorSection - This section contains the static destructor pointer + /// list. + const MCSection *StaticDtorSection; + public: // FIXME: NONPUB. const MCSection *getOrCreateSection(const char *Name, @@ -69,7 +77,10 @@ public: const MCSection *getTextSection() const { return TextSection; } const MCSection *getDataSection() const { return DataSection; } - + + const MCSection *getStaticCtorSection() const { return StaticCtorSection; } + const MCSection *getStaticDtorSection() const { return StaticDtorSection; } + /// shouldEmitUsedDirectiveFor - This hook allows targets to selectively /// decide not to emit the UsedDirective for some symbols in llvm.used. /// FIXME: REMOVE this (rdar://7071300) |