Split out the MC part of this test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-03-21 17:16:11 +00:00
parent e85dd7c26d
commit 6c22b041da
2 changed files with 18 additions and 6 deletions

View File

@ -1,4 +1,4 @@
; RUN: llc < %s -disable-cfi -mtriple=i386-apple-darwin9 -relocation-model=pic -disable-fp-elim | FileCheck %s
; RUN: llc < %s -mtriple=i386-apple-darwin9 -relocation-model=pic -disable-fp-elim | FileCheck %s
@ -48,8 +48,3 @@ return: ; preds = %entry
%retval1 = load i32* %retval ; <i32> [#uses=1]
ret i32 %retval1
}
; CHECK: .private_extern _func.eh
; CHECK: .private_extern _main.eh

View File

@ -0,0 +1,17 @@
// RUN: llvm-mc -filetype=obj -triple i686-apple-darwin %s -o - | llvm-readobj -t | FileCheck %s
// Make sure that the exception handling data has the same visibility as the
// function it's generated for.
.private_extern _main
.globl _main
_main:
.cfi_startproc
retl
.cfi_endproc
// CHECK: Name: _main
// CHECK-NEXT: PrivateExtern
// CHECK: Name: _main.eh
// CHECK-NEXT: PrivateExtern