[llvm] r204481 - Split out the MC part of this test.
Rafael Espindola
rafael.espindola at gmail.com
Fri Mar 21 10:16:11 PDT 2014
Author: rafael
Date: Fri Mar 21 12:16:11 2014
New Revision: 204481
URL: http://llvm.org/viewvc/llvm-project?rev=204481&view=rev
Log:
Split out the MC part of this test.
Added:
llvm/trunk/test/MC/MachO/hidden-vis-eh.s
Modified:
llvm/trunk/test/CodeGen/X86/hidden-vis-pic.ll
Modified: llvm/trunk/test/CodeGen/X86/hidden-vis-pic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/hidden-vis-pic.ll?rev=204481&r1=204480&r2=204481&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/hidden-vis-pic.ll (original)
+++ llvm/trunk/test/CodeGen/X86/hidden-vis-pic.ll Fri Mar 21 12:16:11 2014
@@ -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:
%retval1 = load i32* %retval ; <i32> [#uses=1]
ret i32 %retval1
}
-
-; CHECK: .private_extern _func.eh
-; CHECK: .private_extern _main.eh
-
-
Added: llvm/trunk/test/MC/MachO/hidden-vis-eh.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/MachO/hidden-vis-eh.s?rev=204481&view=auto
==============================================================================
--- llvm/trunk/test/MC/MachO/hidden-vis-eh.s (added)
+++ llvm/trunk/test/MC/MachO/hidden-vis-eh.s Fri Mar 21 12:16:11 2014
@@ -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
More information about the llvm-commits
mailing list