[lld] r231627 - Test: Use layout-after instead of layout-before.
Rui Ueyama
ruiu at google.com
Sun Mar 8 21:00:30 PDT 2015
Author: ruiu
Date: Sun Mar 8 23:00:29 2015
New Revision: 231627
URL: http://llvm.org/viewvc/llvm-project?rev=231627&view=rev
Log:
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.
Modified:
lld/trunk/test/core/gnulinkonce-remaining-undef.objtxt
lld/trunk/test/core/gnulinkonce-simple.objtxt
lld/trunk/test/core/sectiongroup-remaining-undef.objtxt
lld/trunk/test/core/sectiongroup-simple.objtxt
Modified: lld/trunk/test/core/gnulinkonce-remaining-undef.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/core/gnulinkonce-remaining-undef.objtxt?rev=231627&r1=231626&r2=231627&view=diff
==============================================================================
--- lld/trunk/test/core/gnulinkonce-remaining-undef.objtxt (original)
+++ lld/trunk/test/core/gnulinkonce-remaining-undef.objtxt Sun Mar 8 23:00:29 2015
@@ -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
Modified: lld/trunk/test/core/gnulinkonce-simple.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/core/gnulinkonce-simple.objtxt?rev=231627&r1=231626&r2=231627&view=diff
==============================================================================
--- lld/trunk/test/core/gnulinkonce-simple.objtxt (original)
+++ lld/trunk/test/core/gnulinkonce-simple.objtxt Sun Mar 8 23:00:29 2015
@@ -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
Modified: lld/trunk/test/core/sectiongroup-remaining-undef.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/core/sectiongroup-remaining-undef.objtxt?rev=231627&r1=231626&r2=231627&view=diff
==============================================================================
--- lld/trunk/test/core/sectiongroup-remaining-undef.objtxt (original)
+++ lld/trunk/test/core/sectiongroup-remaining-undef.objtxt Sun Mar 8 23:00:29 2015
@@ -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
Modified: lld/trunk/test/core/sectiongroup-simple.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/core/sectiongroup-simple.objtxt?rev=231627&r1=231626&r2=231627&view=diff
==============================================================================
--- lld/trunk/test/core/sectiongroup-simple.objtxt (original)
+++ lld/trunk/test/core/sectiongroup-simple.objtxt Sun Mar 8 23:00:29 2015
@@ -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
More information about the llvm-commits
mailing list