From 1cc68742afadb7421e3e3773164dc7efe575a16f Mon Sep 17 00:00:00 2001
From: Rafael Espindola <rafael.espindola@gmail.com>
Date: Tue, 3 Nov 2015 19:24:17 +0000
Subject: [PATCH] Remove unnecessary dependency on section and string
 positions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251964 91177308-0d34-0410-b5e6-96231b3b80d8
---
 test/CodeGen/X86/push-cfi-obj.ll | 3 +--
 test/MC/ELF/debug-loc.s          | 2 +-
 test/MC/ELF/popsection.s         | 4 ++--
 test/MC/ELF/section.s            | 2 +-
 4 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/test/CodeGen/X86/push-cfi-obj.ll b/test/CodeGen/X86/push-cfi-obj.ll
index bc01407f6f3..33291ec3318 100644
--- a/test/CodeGen/X86/push-cfi-obj.ll
+++ b/test/CodeGen/X86/push-cfi-obj.ll
@@ -5,8 +5,7 @@
 ; DARWIN: Name: __compact_unwind
 ; DARWIN: Segment: __LD
 
-; LINUX:         Index: 8
-; LINUX-NEXT:    Name: .eh_frame (41)
+; LINUX:         Name: .eh_frame
 ; LINUX-NEXT:    Type: SHT_PROGBITS (0x1)
 ; LINUX-NEXT:    Flags [ (0x2)
 ; LINUX-NEXT:      SHF_ALLOC (0x2)
diff --git a/test/MC/ELF/debug-loc.s b/test/MC/ELF/debug-loc.s
index ea8eb3ec70c..4f148728423 100644
--- a/test/MC/ELF/debug-loc.s
+++ b/test/MC/ELF/debug-loc.s
@@ -14,7 +14,7 @@
 // CHECK-NEXT:     Flags [
 // CHECK-NEXT:     ]
 // CHECK-NEXT:     Address: 0x0
-// CHECK-NEXT:     Offset: 0x44
+// CHECK-NEXT:     Offset:
 // CHECK-NEXT:     Size: 61
 // CHECK-NEXT:     Link: 0
 // CHECK-NEXT:     Info: 0
diff --git a/test/MC/ELF/popsection.s b/test/MC/ELF/popsection.s
index 19f55688a1b..ace6fac5e4c 100644
--- a/test/MC/ELF/popsection.s
+++ b/test/MC/ELF/popsection.s
@@ -6,8 +6,8 @@
         .popsection
 
 // CHECK:       Section {
-// CHECK:         Index: 5
-// CHECK-NEXT:    Name: foo
+// CHECK:         Index:
+// CHECK:         Name: foo
 // CHECK-NEXT:    Type: SHT_PROGBITS
 // CHECK-NEXT:    Flags [ (0x0)
 // CHECK-NEXT:    ]
diff --git a/test/MC/ELF/section.s b/test/MC/ELF/section.s
index ab3fe038740..008c4605552 100644
--- a/test/MC/ELF/section.s
+++ b/test/MC/ELF/section.s
@@ -123,7 +123,7 @@ bar:
 .section .excluded,"e",@progbits
 
 // CHECK:      Section {
-// CHECK:        Name: .excluded (92)
+// CHECK:        Name: .excluded
 // CHECK-NEXT:   Type: SHT_PROGBITS (0x1)
 // CHECK-NEXT:   Flags [ (0x80000000)
 // CHECK-NEXT:     SHF_EXCLUDE (0x80000000)
-- 
2.34.1