Showing with 4 additions and 13 deletions.
  1. +4 −13 src/s2ir.c
17 changes: 4 additions & 13 deletions src/s2ir.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/* Compiler implementation of the D programming language
* Copyright (c) 1999-2014 by Digital Mars
* Copyright (c) 1999-2015 by Digital Mars
* All Rights Reserved
* written by Walter Bright
* http://www.digitalmars.com
Expand Down Expand Up @@ -58,21 +58,16 @@ RET retStyle(TypeFunction *tf);
(s)->Slinnum = (loc).linnum, \
(s)->Scharnum = (loc).charnum)

#define SEH (TARGET_WINDOS)

/***********************************************
* Generate code to set index into scope table.
*/

#if SEH
void setScopeIndex(Blockx *blx, block *b, int scope_index)
{
if (!global.params.is64bit)
if (config.ehmethod == EH_WIN32)
block_appendexp(b, nteh_setScopeTableIndex(blx, scope_index));
}
#else
#define setScopeIndex(blx, b, scope_index) ;
#endif

/****************************************
* Allocate a new block, and set the tryblock.
Expand Down Expand Up @@ -991,10 +986,8 @@ class S2irVisitor : public Visitor
{
Blockx *blx = irs->blx;

#if SEH
if (!global.params.is64bit)
if (config.ehmethod == EH_WIN32)
nteh_declarvars(blx);
#endif

IRState mystate(irs, s);

Expand Down Expand Up @@ -1083,10 +1076,8 @@ class S2irVisitor : public Visitor

Blockx *blx = irs->blx;

#if SEH
if (!global.params.is64bit)
if (config.ehmethod == EH_WIN32)
nteh_declarvars(blx);
#endif

block *tryblock = block_goto(blx, BCgoto, NULL);

Expand Down