From: Rafael Espindola Date: Mon, 2 Dec 2013 14:59:34 +0000 (+0000) Subject: Output .eh_frames on COFF too now that the integrated as is used on mingw. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dfb31b6cac83de624653cc23f242f4f807f79768;p=oota-llvm.git Output .eh_frames on COFF too now that the integrated as is used on mingw. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196104 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/WinCOFFStreamer.cpp b/lib/MC/WinCOFFStreamer.cpp index af313b2ff88..4989957c6ab 100644 --- a/lib/MC/WinCOFFStreamer.cpp +++ b/lib/MC/WinCOFFStreamer.cpp @@ -309,6 +309,7 @@ void WinCOFFStreamer::EmitWin64EHHandlerData() { } void WinCOFFStreamer::FinishImpl() { + EmitFrames(NULL, true); EmitW64Tables(); MCObjectStreamer::FinishImpl(); } diff --git a/test/MC/COFF/eh-frame.s b/test/MC/COFF/eh-frame.s new file mode 100644 index 00000000000..e606b764d64 --- /dev/null +++ b/test/MC/COFF/eh-frame.s @@ -0,0 +1,14 @@ +// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | llvm-readobj -s | FileCheck %s + + .def _main; + .scl 2; + .type 32; + .endef + .text + .globl _main +_main: + .cfi_startproc + ret + .cfi_endproc + +// CHECK: Name: .eh_frame