diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2015-02-16 22:59:29 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2015-02-16 22:59:29 +0000 |
commit | 79ba8407d21efd68e98d26be863b063bc4c6156d (patch) | |
tree | 6c0dd890d7e9ea79419b67276bd7015ade7e74a3 | |
parent | 05fa2b0a1486076507bed95c81f33debb0077bd1 (diff) | |
download | bcm5719-llvm-79ba8407d21efd68e98d26be863b063bc4c6156d.tar.gz bcm5719-llvm-79ba8407d21efd68e98d26be863b063bc4c6156d.zip |
[Mips] Add .MIPS.options section descriptor kinds enumeration
No functional changes.
llvm-svn: 229452
-rw-r--r-- | llvm/include/llvm/Support/ELF.h | 16 | ||||
-rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/ELF.h b/llvm/include/llvm/Support/ELF.h index 590df51ea8a..3e41a6be4a1 100644 --- a/llvm/include/llvm/Support/ELF.h +++ b/llvm/include/llvm/Support/ELF.h @@ -475,6 +475,22 @@ enum { STO_MIPS_MIPS16 = 0xf0 // MIPS Specific ISA for Mips16 }; +// .MIPS.options section descriptor kinds +enum { + ODK_NULL = 0, // Undefined + ODK_REGINFO = 1, // Register usage information + ODK_EXCEPTIONS = 2, // Exception processing options + ODK_PAD = 3, // Section padding options + ODK_HWPATCH = 4, // Hardware patches applied + ODK_FILL = 5, // Linker fill value + ODK_TAGS = 6, // Space for tool identification + ODK_HWAND = 7, // Hardware AND patches applied + ODK_HWOR = 8, // Hardware OR patches applied + ODK_GP_GROUP = 9, // GP group to use for text/data sections + ODK_IDENT = 10, // ID information + ODK_PAGESIZE = 11 // Page size information +}; + // Hexagon Specific e_flags // Release 5 ABI enum { diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp index f0d3be33424..188e3e8e1db 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp @@ -34,7 +34,7 @@ void MipsRegInfoRecord::EmitMipsOptionRecord() { MCA.getOrCreateSectionData(*Sec).setAlignment(8); Streamer->SwitchSection(Sec); - Streamer->EmitIntValue(1, 1); // kind + Streamer->EmitIntValue(ELF::ODK_REGINFO, 1); // kind Streamer->EmitIntValue(40, 1); // size Streamer->EmitIntValue(0, 2); // section Streamer->EmitIntValue(0, 4); // info |