From 146cdc020d84db9a26aa65f82ca60d65c49a4032 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Sat, 21 Oct 2023 20:30:02 +0100 Subject: [PATCH] Remove V3AstConstOnly.h This is now redundant with the introduction of VNVisitorConst --- src/CMakeLists.txt | 1 - src/V3AstConstOnly.h | 29 ----------------------------- src/V3Broken.cpp | 4 ---- src/V3Stats.cpp | 3 --- 4 files changed, 37 deletions(-) delete mode 100644 src/V3AstConstOnly.h diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8124e0ee3..fdf215082 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -35,7 +35,6 @@ set(HEADERS V3Assert.h V3AssertPre.h V3Ast.h - V3AstConstOnly.h V3AstInlines.h V3AstNodeDType.h V3AstNodeExpr.h diff --git a/src/V3AstConstOnly.h b/src/V3AstConstOnly.h deleted file mode 100644 index f785a3239..000000000 --- a/src/V3AstConstOnly.h +++ /dev/null @@ -1,29 +0,0 @@ -// -*- mode: C++; c-file-style: "cc-mode" -*- -//************************************************************************* -// DESCRIPTION: Verilator: Ast node structure -// -// Code available from: https://verilator.org -// -//************************************************************************* -// -// Copyright 2003-2023 by Wilson Snyder. This program is free software; you -// can redistribute it and/or modify it under the terms of either the GNU -// Lesser General Public License Version 3 or the Perl Artistic License -// Version 2.0. -// SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0 -// -//************************************************************************* - -#ifndef VERILATOR_V3ASTCONSTONLY_H_ -#define VERILATOR_V3ASTCONSTONLY_H_ - -// Include only in visitors that do not not edit nodes, so should use constant iterators -#define iterateAndNext error_use_iterateAndNextConst -#define iterateChildren error_use_iterateChildrenConst - -#define addNext error_no_addNext_in_ConstOnlyVisitor -#define replaceWith error_no_replaceWith_in_ConstOnlyVisitor -#define deleteTree error_no_deleteTree_in_ConstOnlyVisitor -#define unlinkFrBack error_no_unlinkFrBack_in_ConstOnlyVisitor - -#endif // Guard diff --git a/src/V3Broken.cpp b/src/V3Broken.cpp index 9ae17efb9..5daa4f5a8 100644 --- a/src/V3Broken.cpp +++ b/src/V3Broken.cpp @@ -26,10 +26,6 @@ #include "V3Broken.h" -// This visitor does not edit nodes, and is called at error-exit, so should use constant iterators -#include "V3AstConstOnly.h" - -#include #include VL_DEFINE_DEBUG_FUNCTIONS; diff --git a/src/V3Stats.cpp b/src/V3Stats.cpp index 3f89004df..f79c8145a 100644 --- a/src/V3Stats.cpp +++ b/src/V3Stats.cpp @@ -18,9 +18,6 @@ #include "V3Stats.h" -// This visitor does not edit nodes, and is called at error-exit, so should use constant iterators -#include "V3AstConstOnly.h" - #include #include