diff options
author | Jason W Kim <jason.w.kim.2009@gmail.com> | 2010-10-11 23:01:44 +0000 |
---|---|---|
committer | Jason W Kim <jason.w.kim.2009@gmail.com> | 2010-10-11 23:01:44 +0000 |
commit | 17b443df4368acfad853d09858c033c45c468d5c (patch) | |
tree | 23eaf6defe5ca1239c1bcf27f904156ee70a9bb0 /lib/Target/ARM/ARMBuildAttrs.h | |
parent | d3d2ddc78ea901a5b11123374f50523ea86428cb (diff) |
Second set of ARM/MC/ELF changes.
Added ARM specific ELF section types.
Added AttributesSection to ARMElfTargetObject
First step in unifying .cpu assembly tag with ELF/.o
llc now asserts on actual ELF emission on -filetype=obj :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBuildAttrs.h')
-rw-r--r-- | lib/Target/ARM/ARMBuildAttrs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMBuildAttrs.h b/lib/Target/ARM/ARMBuildAttrs.h index 405b611220..8c54298ceb 100644 --- a/lib/Target/ARM/ARMBuildAttrs.h +++ b/lib/Target/ARM/ARMBuildAttrs.h @@ -16,7 +16,14 @@ #define __TARGET_ARMBUILDATTRS_H__ namespace ARMBuildAttrs { + enum SpecialAttr { + // This is for the .cpu asm attr. It translates into one or more + // AttrType (below) entries in the .ARM.attributes section in the ELF. + SEL_CPU + }; + enum AttrType { + // Rest correspond to ELF/.ARM.attributes File = 1, Section = 2, Symbol = 3, @@ -59,6 +66,11 @@ namespace ARMBuildAttrs { Virtualization_use = 68, MPextension_use = 70 }; + + // Magic numbers for .ARM.attributes + enum AttrMagic { + Format_Version = 0x41 + }; } #endif // __TARGET_ARMBUILDATTRS_H__ |