mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
Test basic SEH directive-parsing functionality. Fix a latent bug exposed by
this test. llvm-svn: 132004
This commit is contained in:
parent
161f211628
commit
d943eb05ed
@ -21,7 +21,8 @@
|
||||
using namespace llvm;
|
||||
|
||||
MCStreamer::MCStreamer(MCContext &Ctx) : Context(Ctx), EmitEHFrame(true),
|
||||
EmitDebugFrame(false) {
|
||||
EmitDebugFrame(false),
|
||||
CurrentW64UnwindInfo(0) {
|
||||
const MCSection *section = NULL;
|
||||
SectionStack.push_back(std::make_pair(section, section));
|
||||
}
|
||||
|
18
test/MC/AsmParser/directive_seh.s
Normal file
18
test/MC/AsmParser/directive_seh.s
Normal file
@ -0,0 +1,18 @@
|
||||
# RUN: llvm-mc -triple x86_64-pc-win32 %s | FileCheck %s
|
||||
|
||||
# CHECK: .seh_proc func
|
||||
# CHECK: .seh_stackalloc 8
|
||||
# CHECK: .seh_endprologue
|
||||
# CHECK: .seh_endproc
|
||||
|
||||
.text
|
||||
.globl func
|
||||
.def func; .scl 2; .type 32; .endef
|
||||
.seh_proc func
|
||||
func:
|
||||
subq $8, %rsp
|
||||
.seh_stackalloc 8
|
||||
.seh_endprologue
|
||||
addq $8, %rsp
|
||||
ret
|
||||
.seh_endproc
|
Loading…
Reference in New Issue
Block a user