From 5768e9fde95e03a0fc5388a7814670cee1ae21e9 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 9 Mar 2015 04:00:29 +0000 Subject: [PATCH] Test: Use layout-after instead of layout-before. Update the tests so that they use layout-after instead of layout-before. In all other places, we use layout-afters as primary edges. llvm-svn: 231627 --- lld/test/core/gnulinkonce-remaining-undef.objtxt | 7 ------- lld/test/core/gnulinkonce-simple.objtxt | 14 +++++++------- lld/test/core/sectiongroup-remaining-undef.objtxt | 7 ------- lld/test/core/sectiongroup-simple.objtxt | 14 +++++++------- 4 files changed, 14 insertions(+), 28 deletions(-) diff --git a/lld/test/core/gnulinkonce-remaining-undef.objtxt b/lld/test/core/gnulinkonce-remaining-undef.objtxt index fcd28d2..4906082 100644 --- a/lld/test/core/gnulinkonce-remaining-undef.objtxt +++ b/lld/test/core/gnulinkonce-remaining-undef.objtxt @@ -38,9 +38,6 @@ defined-atoms: - name: anotherfunction scope: global type: data - references: - - kind: layout-before - target: f3 - name: f1 scope: global type: code @@ -79,9 +76,5 @@ undefined-atoms: #CHECK: - name: anotherfunction #CHECK: scope: global #CHECK: type: data -#CHECK: references: -#CHECK: - kind: layout-before -#CHECK: offset: 0 -#CHECK: target: f3 #CHECK: undefined-atoms: #CHECK: - name: f3 diff --git a/lld/test/core/gnulinkonce-simple.objtxt b/lld/test/core/gnulinkonce-simple.objtxt index 9740f1a..da325d4 100644 --- a/lld/test/core/gnulinkonce-simple.objtxt +++ b/lld/test/core/gnulinkonce-simple.objtxt @@ -10,6 +10,9 @@ defined-atoms: - name: f1 scope: global type: code + references: + - kind: layout-after + target: anotherfunction - name: f2 scope: global type: code @@ -34,9 +37,6 @@ defined-atoms: - name: anotherfunction scope: global type: data - references: - - kind: layout-before - target: f1 --- undefined-atoms: - name: f1 @@ -63,6 +63,10 @@ undefined-atoms: #CHECK: target: [[GCHILD:[a-zA-Z\.0-9_]+]] #CHECK: - name: f1 #CHECK: scope: global +#CHECK: references: +#CHECK: - kind: layout-after +#CHECK: offset: 0 +#CHECK: target: anotherfunction #CHECK: - name: f2 #CHECK: scope: global #CHECK: - name: d1 @@ -74,7 +78,3 @@ undefined-atoms: #CHECK: - name: anotherfunction #CHECK: scope: global #CHECK: type: data -#CHECK: references: -#CHECK: - kind: layout-before -#CHECK: offset: 0 -#CHECK: target: f1 diff --git a/lld/test/core/sectiongroup-remaining-undef.objtxt b/lld/test/core/sectiongroup-remaining-undef.objtxt index f1323d0..7d889b8 100644 --- a/lld/test/core/sectiongroup-remaining-undef.objtxt +++ b/lld/test/core/sectiongroup-remaining-undef.objtxt @@ -38,9 +38,6 @@ defined-atoms: - name: anotherfunction scope: global type: data - references: - - kind: layout-before - target: f3 - name: f1 scope: global type: code @@ -79,9 +76,5 @@ undefined-atoms: #CHECK: - name: anotherfunction #CHECK: scope: global #CHECK: type: data -#CHECK: references: -#CHECK: - kind: layout-before -#CHECK: offset: 0 -#CHECK: target: f3 #CHECK: undefined-atoms: #CHECK: - name: f3 diff --git a/lld/test/core/sectiongroup-simple.objtxt b/lld/test/core/sectiongroup-simple.objtxt index 584dfb8..9f0ff95 100644 --- a/lld/test/core/sectiongroup-simple.objtxt +++ b/lld/test/core/sectiongroup-simple.objtxt @@ -10,6 +10,9 @@ defined-atoms: - name: f1 scope: global type: code + references: + - kind: layout-after + target: anotherfunction - name: f2 scope: global type: code @@ -34,9 +37,6 @@ defined-atoms: - name: anotherfunction scope: global type: data - references: - - kind: layout-before - target: f1 --- undefined-atoms: - name: f1 @@ -63,6 +63,10 @@ undefined-atoms: #CHECK: target: [[GCHILD:[a-zA-Z\.0-9_]+]] #CHECK: - name: f1 #CHECK: scope: global +#CHECK: references: +#CHECK: - kind: layout-after +#CHECK: offset: 0 +#CHECK: target: anotherfunction #CHECK: - name: f2 #CHECK: scope: global #CHECK: - name: d1 @@ -74,7 +78,3 @@ undefined-atoms: #CHECK: - name: anotherfunction #CHECK: scope: global #CHECK: type: data -#CHECK: references: -#CHECK: - kind: layout-before -#CHECK: offset: 0 -#CHECK: target: f1 -- 2.7.4