[lld] r207745 - [Mips] Follow-up to the r207744. Replace numerical e_flags constants by their names.

Simon Atanasyan simon at atanasyan.com
Thu May 1 04:10:47 PDT 2014


Author: atanasyan
Date: Thu May  1 06:10:47 2014
New Revision: 207745

URL: http://llvm.org/viewvc/llvm-project?rev=207745&view=rev
Log:
[Mips] Follow-up to the r207744. Replace numerical e_flags constants by their names.

Modified:
    lld/trunk/test/elf/Mips/dynlib-fileheader.test
    lld/trunk/test/elf/Mips/exe-fileheader.test
    lld/trunk/test/elf/Mips/opt-emulation.test

Modified: lld/trunk/test/elf/Mips/dynlib-fileheader.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Mips/dynlib-fileheader.test?rev=207745&r1=207744&r2=207745&view=diff
==============================================================================
--- lld/trunk/test/elf/Mips/dynlib-fileheader.test (original)
+++ lld/trunk/test/elf/Mips/dynlib-fileheader.test Thu May  1 06:10:47 2014
@@ -28,12 +28,11 @@
 # CHECK:  ProgramHeaderOffset: 0x34
 # CHECK:  SectionHeaderOffset: 0x20E0
 # CHECK:  Flags [ (0x70001007)
-# CHECK:    0x1
-# CHECK:    0x2
-# CHECK:    0x1000
-# CHECK:    0x10000000
-# CHECK:    0x20000000
-# CHECK:    0x40000000
+# CHECK:    EF_MIPS_ABI_O32 (0x1000)
+# CHECK:    EF_MIPS_ARCH_32R2 (0x70000000)
+# CHECK:    EF_MIPS_CPIC (0x4)
+# CHECK:    EF_MIPS_NOREORDER (0x1)
+# CHECK:    EF_MIPS_PIC (0x2)
 # CHECK:  ]
 # CHECK:  HeaderSize: 52
 # CHECK:  ProgramHeaderEntrySize: 32

Modified: lld/trunk/test/elf/Mips/exe-fileheader.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Mips/exe-fileheader.test?rev=207745&r1=207744&r2=207745&view=diff
==============================================================================
--- lld/trunk/test/elf/Mips/exe-fileheader.test (original)
+++ lld/trunk/test/elf/Mips/exe-fileheader.test Thu May  1 06:10:47 2014
@@ -33,12 +33,10 @@
 # CHECK:   ProgramHeaderOffset: 0x34
 # CHECK:   SectionHeaderOffset: 0x2268
 # CHECK:   Flags [ (0x70001005)
-# CHECK:     0x1
-# CHECK:     0x4
-# CHECK:     0x1000
-# CHECK:     0x10000000
-# CHECK:     0x20000000
-# CHECK:     0x40000000
+# CHECK:     EF_MIPS_ABI_O32 (0x1000)
+# CHECK:     EF_MIPS_ARCH_32R2 (0x70000000)
+# CHECK:     EF_MIPS_CPIC (0x4)
+# CHECK:     EF_MIPS_NOREORDER (0x1)
 # CHECK:   ]
 # CHECK:   HeaderSize: 52
 # CHECK:   ProgramHeaderEntrySize: 32

Modified: lld/trunk/test/elf/Mips/opt-emulation.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Mips/opt-emulation.test?rev=207745&r1=207744&r2=207745&view=diff
==============================================================================
--- lld/trunk/test/elf/Mips/opt-emulation.test (original)
+++ lld/trunk/test/elf/Mips/opt-emulation.test Thu May  1 06:10:47 2014
@@ -12,12 +12,10 @@
 # LE-O32:      Machine: EM_MIPS (0x8)
 # LE-O32:      Version: 1
 # LE-O32:      Flags [ (0x70001005)
-# LE-O32-NEXT:    0x1
-# LE-O32-NEXT:    0x4
-# LE-O32-NEXT:    0x1000
-# LE-O32-NEXT:    0x10000000
-# LE-O32-NEXT:    0x20000000
-# LE-O32-NEXT:    0x40000000
+# LE-O32-NEXT:    EF_MIPS_ABI_O32 (0x1000)
+# LE-O32-NEXT:    EF_MIPS_ARCH_32R2 (0x70000000)
+# LE-O32-NEXT:    EF_MIPS_CPIC (0x4)
+# LE-O32-NEXT:    EF_MIPS_NOREORDER (0x1)
 # LE-O32-NEXT: ]
 
 !ELF





More information about the llvm-commits mailing list