summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-06-25 08:22:57 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-06-25 08:22:57 +0000
commit60dc5d4b61b0b513c1b66ba9565caf3b2703d8f5 (patch)
treee0715fe3def6d7000b99f4c4853136def8417535 /llvm/test/Object
parent3bc5ad551a4fd947bcc7f417ae5bedbe0d6f0cdf (diff)
downloadbcm5719-llvm-60dc5d4b61b0b513c1b66ba9565caf3b2703d8f5.tar.gz
bcm5719-llvm-60dc5d4b61b0b513c1b66ba9565caf3b2703d8f5.zip
[yaml2obj/obj2yaml] - Allow having the symbols and sections with duplicated names.
The patch teaches yaml2obj/obj2yaml to support parsing/dumping the sections and symbols with the same name. A special suffix is added to a name to make it unique. Differential revision: https://reviews.llvm.org/D63596 llvm-svn: 364282
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/X86/obj2yaml-dup-section-name.s14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/test/Object/X86/obj2yaml-dup-section-name.s b/llvm/test/Object/X86/obj2yaml-dup-section-name.s
index a02e93fa54a..0c480b420c2 100644
--- a/llvm/test/Object/X86/obj2yaml-dup-section-name.s
+++ b/llvm/test/Object/X86/obj2yaml-dup-section-name.s
@@ -9,16 +9,16 @@
# CHECK: - Name: .text.foo{{$}}
# CHECK: - Name: .rela.text.foo{{$}}
# CHECK: Info: .text.foo{{$}}
-# CHECK: - Name: .group1{{$}}
+# CHECK: - Name: '.group [1]'
# CHECK: Members:
-# CHECK: - SectionOrType: .text.foo2{{$}}
-# CHECK: - SectionOrType: .rela.text.foo3{{$}}
-# CHECK: - Name: .text.foo2{{$}}
-# CHECK: - Name: .rela.text.foo3{{$}}
-# CHECK: Info: .text.foo2{{$}}
+# CHECK: - SectionOrType: '.text.foo [1]'
+# CHECK: - SectionOrType: '.rela.text.foo [1]'
+# CHECK: - Name: '.text.foo [1]'
+# CHECK: - Name: '.rela.text.foo [1]'
+# CHECK: Info: '.text.foo [1]'
# CHECK: Symbols:
# CHECK: Section: .group{{$}}
-# CHECK: Section: .group1{{$}}
+# CHECK: Section: '.group [1]'
.section .text.foo,"axG",@progbits,sym1,comdat
OpenPOWER on IntegriCloud