Output .eh_frames on COFF too now that the integrated as is used on mingw.

llvm-svn: 196104
This commit is contained in:
Rafael Espindola 2013-12-02 14:59:34 +00:00
parent a358c9051e
commit af7131d0a2
2 changed files with 15 additions and 0 deletions

View File

@ -309,6 +309,7 @@ void WinCOFFStreamer::EmitWin64EHHandlerData() {
}
void WinCOFFStreamer::FinishImpl() {
EmitFrames(NULL, true);
EmitW64Tables();
MCObjectStreamer::FinishImpl();
}

View File

@ -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