git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204481
91177308-0d34-0410-b5e6-
96231b3b80d8
-; 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
%retval1 = load i32* %retval ; <i32> [#uses=1]
ret i32 %retval1
}
%retval1 = load i32* %retval ; <i32> [#uses=1]
ret i32 %retval1
}
-
-; CHECK: .private_extern _func.eh
-; CHECK: .private_extern _main.eh
-
-
--- /dev/null
+// 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