diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-10 19:51:53 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-10 19:51:53 +0000 |
commit | 12f197b3bc736f740373c084be41654b4d88c0a7 (patch) | |
tree | d1416401faabf4d931a879aa7cc425dbacedf2d3 /test/DebugInfo | |
parent | e29887b4ee42ae78790a8c1886a7babee9ef18e5 (diff) | |
download | external_llvm-12f197b3bc736f740373c084be41654b4d88c0a7.zip external_llvm-12f197b3bc736f740373c084be41654b4d88c0a7.tar.gz external_llvm-12f197b3bc736f740373c084be41654b4d88c0a7.tar.bz2 |
The EH symbols are only needed in eh_frame, not debug_frame.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo')
-rw-r--r-- | test/DebugInfo/eh_symbol.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/DebugInfo/eh_symbol.ll b/test/DebugInfo/eh_symbol.ll new file mode 100644 index 0000000..a87afed --- /dev/null +++ b/test/DebugInfo/eh_symbol.ll @@ -0,0 +1,18 @@ +; RUN: llc -mtriple=i386-apple-macosx -disable-cfi %s -o - | FileCheck %s + +; test that we don't produce foo.eh symbols is a debug_frame section. +; CHECK-NOT: .globl _f.eh + +define i32 @f() nounwind readnone optsize { +entry: + ret i32 42 +} + +!llvm.dbg.sp = !{!0} + +!0 = metadata !{i32 589870, i32 0, metadata !1, metadata !"f", metadata !"f", metadata !"", metadata !1, i32 1, metadata !3, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 true, i32 ()* @f, null, null} ; [ DW_TAG_subprogram ] +!1 = metadata !{i32 589865, metadata !"/home/espindola/llvm/test.c", metadata !"/home/espindola/tmpfs/build", metadata !2} ; [ DW_TAG_file_type ] +!2 = metadata !{i32 589841, i32 0, i32 12, metadata !"/home/espindola/llvm/test.c", metadata !"/home/espindola/tmpfs/build", metadata !"clang version 3.0 ()", i1 true, i1 true, metadata !"", i32 0} ; [ DW_TAG_compile_unit ] +!3 = metadata !{i32 589845, metadata !1, metadata !"", metadata !1, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !4, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] +!4 = metadata !{metadata !5} +!5 = metadata !{i32 589860, metadata !2, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] |