[llvm] r241669 - [yaml2obj] Use regex to match sections offsets. NFC

Simon Atanasyan simon at atanasyan.com
Tue Jul 7 23:57:24 PDT 2015


Author: atanasyan
Date: Wed Jul  8 01:57:24 2015
New Revision: 241669

URL: http://llvm.org/viewvc/llvm-project?rev=241669&view=rev
Log:
[yaml2obj] Use regex to match sections offsets. NFC

Modified:
    llvm/trunk/test/Object/yaml2obj-elf-rel.yaml
    llvm/trunk/test/Object/yaml2obj-elf-section-basic.yaml

Modified: llvm/trunk/test/Object/yaml2obj-elf-rel.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/yaml2obj-elf-rel.yaml?rev=241669&r1=241668&r2=241669&view=diff
==============================================================================
--- llvm/trunk/test/Object/yaml2obj-elf-rel.yaml (original)
+++ llvm/trunk/test/Object/yaml2obj-elf-rel.yaml Wed Jul  8 01:57:24 2015
@@ -75,7 +75,7 @@ Symbols:
 # CHECK-NEXT:     Flags [ (0x0)
 # CHECK-NEXT:     ]
 # CHECK-NEXT:     Address: 0x0
-# CHECK-NEXT:     Offset: 0x160
+# CHECK-NEXT:     Offset: 0x{{[0-9A-F]+}}
 # CHECK-NEXT:     Size: 24
 # CHECK-NEXT:     Link: 4
 # CHECK-NEXT:     Info: 1
@@ -89,7 +89,7 @@ Symbols:
 # CHECK-NEXT:     Flags [ (0x0)
 # CHECK-NEXT:     ]
 # CHECK-NEXT:     Address: 0x0
-# CHECK-NEXT:     Offset: 0x180
+# CHECK-NEXT:     Offset: 0x{{[0-9A-F]+}}
 # CHECK-NEXT:     Size: 36
 # CHECK-NEXT:     Link: 4
 # CHECK-NEXT:     Info: 1

Modified: llvm/trunk/test/Object/yaml2obj-elf-section-basic.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/yaml2obj-elf-section-basic.yaml?rev=241669&r1=241668&r2=241669&view=diff
==============================================================================
--- llvm/trunk/test/Object/yaml2obj-elf-section-basic.yaml (original)
+++ llvm/trunk/test/Object/yaml2obj-elf-section-basic.yaml Wed Jul  8 01:57:24 2015
@@ -52,7 +52,7 @@ Sections:
 # CHECK-NEXT:       SHF_ALLOC (0x2)
 # CHECK-NEXT:     ]
 # CHECK-NEXT:     Address: 0xCAFECAFE
-# CHECK-NEXT:     Offset: 0x1D0
+# CHECK-NEXT:     Offset: 0x{{[0-9A-F]+}}
 # CHECK-NEXT:     Size: 8
 # CHECK-NEXT:     Link: 0
 # CHECK-NEXT:     Info: 0





More information about the llvm-commits mailing list