From 0551f613e40e67d5bf050a7d06ca1661d95f63c8 Mon Sep 17 00:00:00 2001 From: kai Date: Sun, 1 Mar 2015 17:33:08 +0100 Subject: [PATCH] Remove last traces of AsmBlockStatement --- dmd2/func.c | 3 --- dmd2/interpret.c | 10 ---------- dmd2/statement.h | 3 --- dmd2/visitor.h | 3 --- gen/asmstmt.cpp | 2 +- gen/statements.cpp | 1 - 6 files changed, 1 insertion(+), 21 deletions(-) diff --git a/dmd2/func.c b/dmd2/func.c index 8cddb1ffd6..99ba3f143b 100644 --- a/dmd2/func.c +++ b/dmd2/func.c @@ -193,9 +193,6 @@ public: } void visit(AsmStatement *s) { } void visit(ImportStatement *s) { } -#if IN_LLVM - void visit(AsmBlockStatement *s) { } -#endif }; /* Tweak all return statements and dtor call for nrvo_var, for correct NRVO. diff --git a/dmd2/interpret.c b/dmd2/interpret.c index a943f1f712..df6bb6ba1e 100644 --- a/dmd2/interpret.c +++ b/dmd2/interpret.c @@ -681,16 +681,6 @@ public: // we can't compile asm statements } -#if IN_LLVM - void visit(AsmBlockStatement *s) - { -#if LOGCOMPILE - printf("%s AsmBlockStatement::ctfeCompile\n", s->loc.toChars()); -#endif - // we can't compile asm statements - } -#endif - void ctfeCompile(Statement *s) { s->accept(this); diff --git a/dmd2/statement.h b/dmd2/statement.h index 12ec3a1dc6..d073f07639 100644 --- a/dmd2/statement.h +++ b/dmd2/statement.h @@ -41,9 +41,6 @@ class CompoundStatement; class Parameter; class StaticAssert; class AsmStatement; -#if IN_LLVM -class AsmBlockStatement; -#endif class GotoStatement; class ScopeStatement; class TryCatchStatement; diff --git a/dmd2/visitor.h b/dmd2/visitor.h index f5a501ef87..da315d10ad 100644 --- a/dmd2/visitor.h +++ b/dmd2/visitor.h @@ -52,9 +52,6 @@ class DebugStatement; class GotoStatement; class LabelStatement; class AsmStatement; -#if IN_LLVM -class AsmBlockStatement; -#endif class CompoundAsmStatement; class ImportStatement; diff --git a/gen/asmstmt.cpp b/gen/asmstmt.cpp index 921cbe7cd4..b72404defe 100644 --- a/gen/asmstmt.cpp +++ b/gen/asmstmt.cpp @@ -482,7 +482,7 @@ static void remap_inargs(std::string& insnt, size_t nargs, size_t idx) void CompoundAsmStatement_toIR(CompoundAsmStatement *stmt, IRState* p) { - IF_LOG Logger::println("AsmBlockStatement::toIR(): %s", stmt->loc.toChars()); + IF_LOG Logger::println("CompoundAsmStatement::toIR(): %s", stmt->loc.toChars()); LOG_SCOPE; // disable inlining by default diff --git a/gen/statements.cpp b/gen/statements.cpp index b82f472ba1..59cd10ca5d 100644 --- a/gen/statements.cpp +++ b/gen/statements.cpp @@ -259,7 +259,6 @@ public: } void visit(AsmStatement *s) { } void visit(ImportStatement *s) { } - void visit(AsmBlockStatement *s) { } }; //////////////////////////////////////////////////////////////////////////////