mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
Don't allow .seh_handler and .seh_handlerdata directives inside chained
unwind areas. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131795 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
321fe74b2d
commit
81f3830f2e
@ -361,6 +361,8 @@ void MCStreamer::EmitWin64EHHandler(const MCSymbol *Sym, bool Unwind,
|
||||
bool Except) {
|
||||
EnsureValidW64UnwindInfo();
|
||||
MCWin64EHUnwindInfo *CurFrame = CurrentW64UnwindInfo;
|
||||
if (CurFrame->ChainedParent)
|
||||
report_fatal_error("Chained unwind areas can't have handlers!");
|
||||
CurFrame->ExceptionHandler = Sym;
|
||||
if (!Except && !Unwind)
|
||||
report_fatal_error("Don't know what kind of handler this is!");
|
||||
@ -372,6 +374,9 @@ void MCStreamer::EmitWin64EHHandler(const MCSymbol *Sym, bool Unwind,
|
||||
|
||||
void MCStreamer::EmitWin64EHHandlerData() {
|
||||
EnsureValidW64UnwindInfo();
|
||||
MCWin64EHUnwindInfo *CurFrame = CurrentW64UnwindInfo;
|
||||
if (CurFrame->ChainedParent)
|
||||
report_fatal_error("Chained unwind areas can't have handlers!");
|
||||
}
|
||||
|
||||
void MCStreamer::EmitWin64EHPushReg(unsigned Register) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user