[llvm] r221268 - [yaml2obj] Allow yaml2obj tool to recognize EF_MIPS_NAN2008 flag
Simon Atanasyan
simon at atanasyan.com
Tue Nov 4 05:33:36 PST 2014
Author: atanasyan
Date: Tue Nov 4 07:33:36 2014
New Revision: 221268
URL: http://llvm.org/viewvc/llvm-project?rev=221268&view=rev
Log:
[yaml2obj] Allow yaml2obj tool to recognize EF_MIPS_NAN2008 flag
Modified:
llvm/trunk/lib/Object/ELFYAML.cpp
llvm/trunk/test/Object/yaml2obj-elf-file-headers-with-e_flags.yaml
Modified: llvm/trunk/lib/Object/ELFYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/ELFYAML.cpp?rev=221268&r1=221267&r2=221268&view=diff
==============================================================================
--- llvm/trunk/lib/Object/ELFYAML.cpp (original)
+++ llvm/trunk/lib/Object/ELFYAML.cpp Tue Nov 4 07:33:36 2014
@@ -264,6 +264,7 @@ void ScalarBitSetTraits<ELFYAML::ELF_EF>
BCase(EF_MIPS_CPIC)
BCase(EF_MIPS_ABI2)
BCase(EF_MIPS_32BITMODE)
+ BCase(EF_MIPS_NAN2008)
BCase(EF_MIPS_ABI_O32)
BCase(EF_MIPS_MICROMIPS)
BCase(EF_MIPS_ARCH_ASE_M16)
Modified: llvm/trunk/test/Object/yaml2obj-elf-file-headers-with-e_flags.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/yaml2obj-elf-file-headers-with-e_flags.yaml?rev=221268&r1=221267&r2=221268&view=diff
==============================================================================
--- llvm/trunk/test/Object/yaml2obj-elf-file-headers-with-e_flags.yaml (original)
+++ llvm/trunk/test/Object/yaml2obj-elf-file-headers-with-e_flags.yaml Tue Nov 4 07:33:36 2014
@@ -5,13 +5,15 @@ FileHeader:
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_MIPS
- Flags: [ EF_MIPS_NOREORDER, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2 ]
+ Flags: [ EF_MIPS_NOREORDER, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2,
+ EF_MIPS_NAN2008 ]
# CHECK: Format: ELF32-mips
# CHECK: Arch: mipsel
# CHECK: Machine: EM_MIPS
-# CHECK: Flags [ (0x70001001)
+# CHECK: Flags [ (0x70001401)
# CHECK-NEXT: EF_MIPS_ABI_O32 (0x1000)
# CHECK-NEXT: EF_MIPS_ARCH_32R2 (0x70000000)
+# CHECK-NEXT: EF_MIPS_NAN2008 (0x400)
# CHECK-NEXT: EF_MIPS_NOREORDER (0x1)
# CHECK-NEXT: ]
More information about the llvm-commits
mailing list