Since we're using DW_AT_string rather than DW_AT_strp for debug_info
authorEric Christopher <echristo@gmail.com>
Thu, 19 Jun 2014 20:00:13 +0000 (20:00 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 19 Jun 2014 20:00:13 +0000 (20:00 +0000)
for assembly files we can't depend on the offset within the section
after a string since it could be different between producers etc.
Relax these tests accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211308 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/ARM/dwarf-asm-multiple-sections.s
test/MC/ARM/dwarf-asm-nonstandard-section.s
test/MC/ARM/dwarf-asm-single-section.s

index 5e64fcc..ed1b89e 100644 (file)
@@ -60,8 +60,8 @@ b:
 // RELOC-NEXT: 00000006 R_ARM_ABS32 .debug_abbrev
 // RELOC-NEXT: 0000000c R_ARM_ABS32 .debug_line
 // RELOC-NEXT: 00000010 R_ARM_ABS32 .debug_ranges
-// RELOC-NEXT: 0000004f R_ARM_ABS32 .text
-// RELOC-NEXT: 00000061 R_ARM_ABS32 foo
+// RELOC-NEXT: R_ARM_ABS32 .text
+// RELOC-NEXT: R_ARM_ABS32 foo
 
 // RELOC: RELOCATION RECORDS FOR [.rel.debug_ranges]:
 // RELOC-NEXT: 00000004 R_ARM_ABS32 .text
index adf92ba..497a39a 100644 (file)
@@ -46,9 +46,9 @@ b:
 // RELOC: RELOCATION RECORDS FOR [.rel.debug_info]:
 // RELOC-NEXT: 00000006 R_ARM_ABS32 .debug_abbrev
 // RELOC-NEXT: 0000000c R_ARM_ABS32 .debug_line
-// RELOC-NEXT: 00000010 R_ARM_ABS32 foo
-// RELOC-NEXT: 00000014 R_ARM_ABS32 foo
-// RELOC-NEXT: 00000053 R_ARM_ABS32 foo
+// RELOC-NEXT: R_ARM_ABS32 foo
+// RELOC-NEXT: R_ARM_ABS32 foo
+// RELOC-NEXT: R_ARM_ABS32 foo
 
 // RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_ranges]:
 
index d69dfab..c57e649 100644 (file)
@@ -45,9 +45,9 @@ a:
 // RELOC: RELOCATION RECORDS FOR [.rel.debug_info]:
 // RELOC-NEXT: 00000006 R_ARM_ABS32 .debug_abbrev
 // RELOC-NEXT: 0000000c R_ARM_ABS32 .debug_line
-// RELOC-NEXT: 00000010 R_ARM_ABS32 .text
-// RELOC-NEXT: 00000014 R_ARM_ABS32 .text
-// RELOC-NEXT: 00000053 R_ARM_ABS32 .text
+// RELOC-NEXT: R_ARM_ABS32 .text
+// RELOC-NEXT: R_ARM_ABS32 .text
+// RELOC-NEXT: R_ARM_ABS32 .text
 
 // RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_ranges]: