diff options
-rw-r--r-- | lib/MC/WinCOFFStreamer.cpp | 1 | ||||
-rw-r--r-- | test/MC/COFF/eh-frame.s | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/MC/WinCOFFStreamer.cpp b/lib/MC/WinCOFFStreamer.cpp index 7fc114c..5b5aad7 100644 --- a/lib/MC/WinCOFFStreamer.cpp +++ b/lib/MC/WinCOFFStreamer.cpp @@ -322,6 +322,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 0000000..e606b76 --- /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 |