From 6c22b041da771c2cccc004d97fd49543f0ebf168 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 21 Mar 2014 17:16:11 +0000 Subject: [PATCH] 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 --- test/CodeGen/X86/hidden-vis-pic.ll | 7 +------ test/MC/MachO/hidden-vis-eh.s | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 test/MC/MachO/hidden-vis-eh.s diff --git a/test/CodeGen/X86/hidden-vis-pic.ll b/test/CodeGen/X86/hidden-vis-pic.ll index 67be3d0ffca..1caab7a6a00 100644 --- a/test/CodeGen/X86/hidden-vis-pic.ll +++ b/test/CodeGen/X86/hidden-vis-pic.ll @@ -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 ; [#uses=1] ret i32 %retval1 } - -; CHECK: .private_extern _func.eh -; CHECK: .private_extern _main.eh - - diff --git a/test/MC/MachO/hidden-vis-eh.s b/test/MC/MachO/hidden-vis-eh.s new file mode 100644 index 00000000000..c0453d2e3b9 --- /dev/null +++ b/test/MC/MachO/hidden-vis-eh.s @@ -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 -- 2.34.1