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 | 109ff296c8c45e0fb74fefe34068dbacf65d7e51 (patch) | |
tree | dcee37474266fd26993b38382f86d03393ed96c6 /llvm/lib/Target/ARM/ARMBuildAttrs.h | |
parent | 84117119ffd823834afc96a6ec5262ed698fc935 (diff) | |
download | bcm5719-llvm-109ff296c8c45e0fb74fefe34068dbacf65d7e51.tar.gz bcm5719-llvm-109ff296c8c45e0fb74fefe34068dbacf65d7e51.zip |
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 :-)
llvm-svn: 116257
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBuildAttrs.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMBuildAttrs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMBuildAttrs.h b/llvm/lib/Target/ARM/ARMBuildAttrs.h index 405b6112208..8c54298ceb4 100644 --- a/llvm/lib/Target/ARM/ARMBuildAttrs.h +++ b/llvm/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__ |