[llvm] r196104 - Output .eh_frames on COFF too now that the integrated as is used on mingw.
Rafael Espindola
rafael.espindola at gmail.com
Mon Dec 2 06:59:35 PST 2013
Author: rafael
Date: Mon Dec 2 08:59:34 2013
New Revision: 196104
URL: http://llvm.org/viewvc/llvm-project?rev=196104&view=rev
Log:
Output .eh_frames on COFF too now that the integrated as is used on mingw.
Added:
llvm/trunk/test/MC/COFF/eh-frame.s
Modified:
llvm/trunk/lib/MC/WinCOFFStreamer.cpp
Modified: llvm/trunk/lib/MC/WinCOFFStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WinCOFFStreamer.cpp?rev=196104&r1=196103&r2=196104&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WinCOFFStreamer.cpp (original)
+++ llvm/trunk/lib/MC/WinCOFFStreamer.cpp Mon Dec 2 08:59:34 2013
@@ -309,6 +309,7 @@ void WinCOFFStreamer::EmitWin64EHHandler
}
void WinCOFFStreamer::FinishImpl() {
+ EmitFrames(NULL, true);
EmitW64Tables();
MCObjectStreamer::FinishImpl();
}
Added: llvm/trunk/test/MC/COFF/eh-frame.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/COFF/eh-frame.s?rev=196104&view=auto
==============================================================================
--- llvm/trunk/test/MC/COFF/eh-frame.s (added)
+++ llvm/trunk/test/MC/COFF/eh-frame.s Mon Dec 2 08:59:34 2013
@@ -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
More information about the llvm-commits
mailing list