diff options
Diffstat (limited to 'gcc/d/dmd/iasm.c')
-rw-r--r-- | gcc/d/dmd/iasm.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/gcc/d/dmd/iasm.c b/gcc/d/dmd/iasm.c deleted file mode 100644 index fc58a3c4462..00000000000 --- a/gcc/d/dmd/iasm.c +++ /dev/null @@ -1,44 +0,0 @@ - -/* Compiler implementation of the D programming language - * Copyright (C) 2018-2021 by The D Language Foundation, All Rights Reserved - * written by Walter Bright - * http://www.digitalmars.com - * Distributed under the Boost Software License, Version 1.0. - * http://www.boost.org/LICENSE_1_0.txt - * https://github.com/D-Programming-Language/dmd/blob/master/src/iasm.c - */ - -/* Inline assembler for the D programming language compiler - */ - -#include "scope.h" -#include "declaration.h" -#include "statement.h" - -#ifdef IN_GCC -Statement *gccAsmSemantic(GccAsmStatement *s, Scope *sc); -#else -Statement *inlineAsmSemantic(InlineAsmStatement *s, Scope *sc); -#endif - -Statement *asmSemantic(AsmStatement *s, Scope *sc) -{ - //printf("AsmStatement::semantic()\n"); - - FuncDeclaration *fd = sc->parent->isFuncDeclaration(); - assert(fd); - - if (!s->tokens) - return NULL; - - // Assume assembler code takes care of setting the return value - sc->func->hasReturnExp |= 8; - -#ifdef IN_GCC - GccAsmStatement *eas = new GccAsmStatement(s->loc, s->tokens); - return gccAsmSemantic(eas, sc); -#else - InlineAsmStatement *ias = new InlineAsmStatement(s->loc, s->tokens); - return inlineAsmSemantic(ias, sc); -#endif -} |