Skip to content

Commit

Permalink
Merge pull request #4977 from yebblies/TX86
Browse files Browse the repository at this point in the history
Remove token use of TX86 from the glue layer
  • Loading branch information
WalterBright committed Aug 29, 2015
2 parents 981cc65 + 6fea856 commit 20771f8
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions src/e2ir.c
Expand Up @@ -358,7 +358,6 @@ if (I32) assert(tysize[TYnptr] == 4);
*/
e->E1 = el_una(OPind, e->E2->Ety | mTYvolatile, e->E1);
}
#if TX86
if (op == OPscale)
{
elem *et = e->E1;
Expand All @@ -372,7 +371,6 @@ if (I32) assert(tysize[TYnptr] == 4);
e->E1 = e->E2;
e->E2 = et;
}
#endif
}
else if (op == OPvector)
{
Expand Down
2 changes: 0 additions & 2 deletions src/glue.c
Expand Up @@ -248,9 +248,7 @@ void obj_start(char *srcfile)
#endif

el_reset();
#if TX86
cg87_reset();
#endif
out_reset();
}

Expand Down
12 changes: 0 additions & 12 deletions src/iasm.c
Expand Up @@ -49,8 +49,6 @@
#include "iasm.h"
#include "xmm.h"

#if TX86

//#define EXTRA_DEBUG 1

#undef ADDFWAIT
Expand Down Expand Up @@ -4686,13 +4684,3 @@ Statement* asmSemantic(AsmStatement *s, Scope *sc)
//return asmstate.bReturnax;
return s;
}

#else

Statement* asmSemantic(AsmStatement *s, Scope *sc)
{
assert(0);
return NULL;
}

#endif
2 changes: 0 additions & 2 deletions src/s2ir.c
Expand Up @@ -1230,7 +1230,6 @@ class S2irVisitor : public Visitor
break;
}

#if TX86
// Repeat for second operand
switch (c->IFL2)
{
Expand All @@ -1254,7 +1253,6 @@ class S2irVisitor : public Visitor
sym->Sflags |= SFLlivexit;
break;
}
#endif
//c->print();
}

Expand Down
2 changes: 0 additions & 2 deletions src/toir.c
Expand Up @@ -308,7 +308,6 @@ elem *setEthis(Loc loc, IRState *irs, elem *ey, AggregateDeclaration *ad)
*/
int intrinsic_op(FuncDeclaration *fd)
{
#if TX86
fd = fd->toAliasFunc();
const char *name = mangleExact(fd);
//printf("intrinsic_op(%s)\n", name);
Expand Down Expand Up @@ -584,7 +583,6 @@ int intrinsic_op(FuncDeclaration *fd)

return -1;
}
#endif

return -1;
}
Expand Down

0 comments on commit 20771f8

Please sign in to comment.