Add r130623 back now that ELF has been fixed to work with -fno-dwarf2-cfi-asm.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 1 May 2011 15:44:13 +0000 (15:44 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 1 May 2011 15:44:13 +0000 (15:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130658 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCMachOStreamer.cpp
lib/Target/X86/X86MCAsmInfo.cpp
test/CodeGen/PowerPC/mulhs.ll
test/CodeGen/X86/2007-09-17-ObjcFrameEH.ll
test/CodeGen/X86/2008-04-02-unnamedEH.ll
test/CodeGen/X86/2008-12-12-PrivateEHSymbol.ll
test/CodeGen/X86/hidden-vis-pic.ll
test/CodeGen/X86/personality.ll

index b5a55a75304d7d329b27b7f6bc8ffb01b1a6ae25..3da5b49f5405dcc54ce60afe306815d7c918f2af 100644 (file)
@@ -377,6 +377,9 @@ void MCMachOStreamer::EmitInstToData(const MCInst &Inst) {
 }
 
 void MCMachOStreamer::Finish() {
+  if (getNumFrameInfos())
+    MCDwarfFrameEmitter::Emit(*this, true);
+
   // We have to set the fragment atom associations so we can relax properly for
   // Mach-O.
 
index bbe2e774914b079b3440dad5478cd66a62e2ebca..83bba529a6895cda7a07771e7b51058f0b4bfc6f 100644 (file)
@@ -71,7 +71,7 @@ X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &Triple) {
   DwarfUsesInlineInfoSection = true;
 
   // Exceptions handling
-  ExceptionsType = ExceptionHandling::DwarfTable;
+  ExceptionsType = ExceptionHandling::DwarfCFI;
 }
 
 const MCExpr *
index 9ab8d997c0d00eb03d3d581e2e8f4a95748835d8..5b02e187ae88410d6853b1b8a193d68a6ab6100e 100644 (file)
@@ -5,7 +5,7 @@
 ; RUN: not grep add %t 
 ; RUN: grep mulhw %t | count 1
 
-define i32 @mulhs(i32 %a, i32 %b) {
+define i32 @mulhs(i32 %a, i32 %b) nounwind {
 entry:
         %tmp.1 = sext i32 %a to i64             ; <i64> [#uses=1]
         %tmp.3 = sext i32 %b to i64             ; <i64> [#uses=1]
index c3403a0b4eebf63ba1fa7da6625b82ae9e8e4d2d..1e43272a84e8099e74eb0846ea1161176e817f39 100644 (file)
@@ -1,4 +1,6 @@
-; RUN: llc < %s -march=x86 -mtriple=i686-apple-darwin | grep {isNullOrNil].eh"} | count 2
+; RUN: llc < %s -disable-cfi -march=x86 -mtriple=i686-apple-darwin | grep {isNullOrNil].eh"} | FileCheck %s
+
+; CHECK: "_-[NSString(local) isNullOrNil].eh":
 
        %struct.NSString = type {  }
        %struct._objc__method_prototype_list = type opaque
index 27bbbaa2962dad25da10e9c0a4d8ca3ff7b48b9c..ab8ec801b0494bc023c9a4c54a59f35f77388e38 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s | FileCheck %s
+; RUN: llc < %s -disable-cfi | FileCheck %s
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
 target triple = "i386-apple-darwin8"
 
index 0717c207da38729a94f3f7ac45b7130a72045f9c..2e278118b7adcd1b51f08baea34827828fb477e1 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc < %s -march=x86-64 -mtriple=x86_64-apple-darwin9 | grep ^__Z1fv.eh
-; RUN: llc < %s -march=x86    -mtriple=i386-apple-darwin9 | grep ^__Z1fv.eh
+; RUN: llc < %s -disable-cfi -march=x86-64 -mtriple=x86_64-apple-darwin9 | grep ^__Z1fv.eh
+; RUN: llc < %s -disable-cfi -march=x86    -mtriple=i386-apple-darwin9 | grep ^__Z1fv.eh
 
 define void @_Z1fv() {
 entry:
index ba130a2c1c863108953dd25676cfdb4ceecb756b..217dba6944b45afdcbac6d598885bc534ec5391d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=i386-apple-darwin9 -relocation-model=pic -disable-fp-elim -unwind-tables | FileCheck %s
+; RUN: llc < %s -disable-cfi -mtriple=i386-apple-darwin9 -relocation-model=pic -disable-fp-elim -unwind-tables | FileCheck %s
 
 
 
index 705e489eb4c3e9dfafd8e0fac8a09279e6733410..e952a9bb25a4130f1070d278330e8bc2f5676f2b 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin9 -disable-cgp-branch-opts | FileCheck %s -check-prefix=X64
-; RUN: llc < %s -mtriple=i386-apple-darwin9 -disable-cgp-branch-opts | FileCheck %s -check-prefix=X32
+; RUN: llc < %s -disable-cfi -mtriple=x86_64-apple-darwin9 -disable-cgp-branch-opts | FileCheck %s -check-prefix=X64
+; RUN: llc < %s -disable-cfi -mtriple=i386-apple-darwin9 -disable-cgp-branch-opts | FileCheck %s -check-prefix=X32
 ; PR1632
 
 define void @_Z1fv() {
@@ -38,13 +38,15 @@ declare void @__gxx_personality_v0()
 
 declare void @__cxa_end_catch()
 
-; X64: Leh_frame_common_begin0:
-; X64: .long   ___gxx_personality_v0@GOTPCREL+4
+; X64:      zPLR
+; X64:      .byte 155
+; X64-NEXT: .long      ___gxx_personality_v0@GOTPCREL+4
 
-; X32: Leh_frame_common_begin0:
-; X32: .long   L___gxx_personality_v0$non_lazy_ptr-
-; ....
+; X32:        .section __IMPORT,__pointers,non_lazy_symbol_pointers
+; X32-NEXT: L___gxx_personality_v0$non_lazy_ptr:
+; X32-NEXT:   .indirect_symbol ___gxx_personality_v0
 
-; X32: .section        __IMPORT,__pointers,non_lazy_symbol_pointers
-; X32: L___gxx_personality_v0$non_lazy_ptr:
-; X32:   .indirect_symbol ___gxx_personality_v0
+; X32:      zPLR
+; X32:      .byte 155
+; X32-NEXT: :
+; X32-NEXT: .long      L___gxx_personality_v0$non_lazy_ptr-