summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMBuildAttrs.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/ARM/ARMBuildAttrs.h')
-rw-r--r--lib/Target/ARM/ARMBuildAttrs.h12
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__