summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/R600/empty-function.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-03-17 14:34:42 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-03-17 14:34:42 +0000
commitec8da3de019fa2b30968b1877acb56ec2ab368a7 (patch)
tree6dfdbab8da78ef333f963bf4f803e16b4a50f9ca /llvm/test/CodeGen/R600/empty-function.ll
parent5345e420c44fb6147a9e4e127a087b0fcd015286 (diff)
downloadbcm5719-llvm-ec8da3de019fa2b30968b1877acb56ec2ab368a7.tar.gz
bcm5719-llvm-ec8da3de019fa2b30968b1877acb56ec2ab368a7.zip
Call EmitFunctionHeader just before EmitFunctionBody.
This avoids switching to .AMDGPU.config and back and hardcoding the section it switches back to. llvm-svn: 232479
Diffstat (limited to 'llvm/test/CodeGen/R600/empty-function.ll')
-rw-r--r--llvm/test/CodeGen/R600/empty-function.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/R600/empty-function.ll b/llvm/test/CodeGen/R600/empty-function.ll
index b5593eb87ae..a060900811e 100644
--- a/llvm/test/CodeGen/R600/empty-function.ll
+++ b/llvm/test/CodeGen/R600/empty-function.ll
@@ -3,16 +3,16 @@
; Make sure we don't assert on empty functions
-; SI-LABEL: {{^}}empty_function_ret:
; SI: .text
+; SI-LABEL: {{^}}empty_function_ret:
; SI: s_endpgm
; SI: codeLenInByte = 4
define void @empty_function_ret() #0 {
ret void
}
-; SI-LABEL: {{^}}empty_function_unreachable:
; SI: .text
+; SI-LABEL: {{^}}empty_function_unreachable:
; SI: codeLenInByte = 0
define void @empty_function_unreachable() #0 {
unreachable
OpenPOWER on IntegriCloud