diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-13 05:07:35 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-13 05:07:35 +0000 |
commit | 607cd3b63af5af83283a6f242d721c6997e18fca (patch) | |
tree | 68ff3a8d58a70de07d0ea4c8a28991a04176d094 /llvm/lib/Target/ARM | |
parent | 5c2764b3e9071cae6300f26fe0e4de8fb904d2c3 (diff) | |
download | bcm5719-llvm-607cd3b63af5af83283a6f242d721c6997e18fca.tar.gz bcm5719-llvm-607cd3b63af5af83283a6f242d721c6997e18fca.zip |
Change MCSectionELF to represent a section semantically instead of
syntactically as a string, very similiar to what Chris did with MachO.
The parsing support and validation is not introduced yet.
llvm-svn: 78890
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r-- | llvm/lib/Target/ARM/ARMTargetObjectFile.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetObjectFile.h b/llvm/lib/Target/ARM/ARMTargetObjectFile.h index 13fa7e202a0..9703403db22 100644 --- a/llvm/lib/Target/ARM/ARMTargetObjectFile.h +++ b/llvm/lib/Target/ARM/ARMTargetObjectFile.h @@ -11,6 +11,7 @@ #define LLVM_TARGET_ARM_TARGETOBJECTFILE_H #include "llvm/Target/TargetLoweringObjectFile.h" +#include "llvm/MC/MCSectionELF.h" namespace llvm { @@ -21,14 +22,14 @@ namespace llvm { void Initialize(MCContext &Ctx, const TargetMachine &TM) { TargetLoweringObjectFileELF::Initialize(Ctx, TM); - // FIXME: Add new attribute/flag to MCSection for init_array/fini_array. - // That will allow not treating these as "directives". if (TM.getSubtarget<ARMSubtarget>().isAAPCS_ABI()) { StaticCtorSection = - getELFSection("\t.section .init_array,\"aw\",%init_array", true, + getELFSection(".init_array", MCSectionELF::SHT_INIT_ARRAY, + MCSectionELF::SHF_WRITE | MCSectionELF::SHF_ALLOC, SectionKind::getDataRel()); StaticDtorSection = - getELFSection("\t.section .fini_array,\"aw\",%fini_array", true, + getELFSection(".fini_array", MCSectionELF::SHT_FINI_ARRAY, + MCSectionELF::SHF_WRITE | MCSectionELF::SHF_ALLOC, SectionKind::getDataRel()); } } |