summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/stack-size-section.ll
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-06-22 10:53:47 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-06-22 10:53:47 +0000
commitdcf59c548009b983fd78d2625eed79f319d42e31 (patch)
treea9bc21a99cb668cd06e06bdac2a7d7a4633acd50 /llvm/test/CodeGen/ARM/stack-size-section.ll
parente0a6eb1f4f3459a162d23377b421dba545f8fd43 (diff)
downloadbcm5719-llvm-dcf59c548009b983fd78d2625eed79f319d42e31.tar.gz
bcm5719-llvm-dcf59c548009b983fd78d2625eed79f319d42e31.zip
Recommit r335333 "[MC] - Add .stack_size sections into groups and link them with .text"
With compilation fix. Original commit message: D39788 added a '.stack-size' section containing metadata on function stack sizes to output ELF files behind the new -stack-size-section flag. This change does following two things on top: 1) Imagine the case when there are -ffunction-sections flag given and there are text sections in COMDATs. The patch adds a '.stack-size' section into corresponding COMDAT group, so that linker will be able to eliminate them fast during resolving the COMDATs. 2) Patch sets a SHF_LINK_ORDER flag and links '.stack-size' with the corresponding .text. With that linker will be able to do -gc-sections on dead stack sizes sections. Differential revision: https://reviews.llvm.org/D46874 llvm-svn: 335336
Diffstat (limited to 'llvm/test/CodeGen/ARM/stack-size-section.ll')
-rw-r--r--llvm/test/CodeGen/ARM/stack-size-section.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/ARM/stack-size-section.ll b/llvm/test/CodeGen/ARM/stack-size-section.ll
index 142261a9f2c..10f156439e3 100644
--- a/llvm/test/CodeGen/ARM/stack-size-section.ll
+++ b/llvm/test/CodeGen/ARM/stack-size-section.ll
@@ -2,7 +2,7 @@
; CHECK-LABEL: func1:
; CHECK-NEXT: .Lfunc_begin0:
-; CHECK: .section .stack_sizes,"",%progbits
+; CHECK: .section .stack_sizes,"o",%progbits,.text,unique,0
; CHECK-NEXT: .long .Lfunc_begin0
; CHECK-NEXT: .byte 8
define void @func1(i32, i32) #0 {
@@ -13,7 +13,7 @@ define void @func1(i32, i32) #0 {
; CHECK-LABEL: func2:
; CHECK-NEXT: .Lfunc_begin1:
-; CHECK: .section .stack_sizes,"",%progbits
+; CHECK: .section .stack_sizes,"o",%progbits,.text,unique,0
; CHECK-NEXT: .long .Lfunc_begin1
; CHECK-NEXT: .byte 16
define void @func2() #0 {
OpenPOWER on IntegriCloud