From 8dd0338d127b50e60d50f978be68605e8f8faee5 Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Wed, 21 Nov 2018 12:43:41 +0100 Subject: [PATCH] Remove superfluous libyul/ASTDataForward.h and include libyul/AsmDataForward directly instead. --- libyul/ASTDataForward.h | 25 ------------------- libyul/backends/evm/EVMCodeTransform.h | 2 +- libyul/optimiser/ASTCopier.h | 2 +- libyul/optimiser/ASTWalker.h | 2 +- libyul/optimiser/Disambiguator.h | 2 +- libyul/optimiser/ExpressionInliner.h | 2 +- libyul/optimiser/ExpressionJoiner.h | 2 +- libyul/optimiser/ExpressionSimplifier.h | 2 +- libyul/optimiser/ExpressionSplitter.h | 2 +- libyul/optimiser/FullInliner.h | 2 +- libyul/optimiser/FunctionGrouper.h | 2 +- libyul/optimiser/FunctionHoister.h | 2 +- .../InlinableExpressionFunctionFinder.h | 2 +- libyul/optimiser/MainFunction.h | 2 +- libyul/optimiser/NameDispenser.h | 2 +- libyul/optimiser/RedundantAssignEliminator.h | 2 +- libyul/optimiser/SSATransform.h | 2 +- libyul/optimiser/SimplificationRules.h | 2 +- libyul/optimiser/Suite.h | 2 +- libyul/optimiser/SyntacticalEquality.h | 2 +- libyul/optimiser/Utilities.h | 2 +- libyul/optimiser/VarDeclPropagator.h | 2 +- 22 files changed, 21 insertions(+), 46 deletions(-) delete mode 100644 libyul/ASTDataForward.h diff --git a/libyul/ASTDataForward.h b/libyul/ASTDataForward.h deleted file mode 100644 index dffe1c748..000000000 --- a/libyul/ASTDataForward.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - This file is part of solidity. - - solidity is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - solidity is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with solidity. If not, see . -*/ -/** - * @date 2017 - * Pull in some identifiers from the solidity::assembly namespace. - */ - -#pragma once - -#include - diff --git a/libyul/backends/evm/EVMCodeTransform.h b/libyul/backends/evm/EVMCodeTransform.h index bf195dcdb..d559f85a7 100644 --- a/libyul/backends/evm/EVMCodeTransform.h +++ b/libyul/backends/evm/EVMCodeTransform.h @@ -20,7 +20,7 @@ #include -#include +#include #include diff --git a/libyul/optimiser/ASTCopier.h b/libyul/optimiser/ASTCopier.h index 7daf74b8f..4d2f18aea 100644 --- a/libyul/optimiser/ASTCopier.h +++ b/libyul/optimiser/ASTCopier.h @@ -20,7 +20,7 @@ #pragma once -#include +#include #include diff --git a/libyul/optimiser/ASTWalker.h b/libyul/optimiser/ASTWalker.h index 9647c3235..b59b405ed 100644 --- a/libyul/optimiser/ASTWalker.h +++ b/libyul/optimiser/ASTWalker.h @@ -20,7 +20,7 @@ #pragma once -#include +#include #include #include diff --git a/libyul/optimiser/Disambiguator.h b/libyul/optimiser/Disambiguator.h index 4dd278e65..bb83417b8 100644 --- a/libyul/optimiser/Disambiguator.h +++ b/libyul/optimiser/Disambiguator.h @@ -20,7 +20,7 @@ #pragma once -#include +#include #include #include #include diff --git a/libyul/optimiser/ExpressionInliner.h b/libyul/optimiser/ExpressionInliner.h index 681b0db4e..14e80c0a5 100644 --- a/libyul/optimiser/ExpressionInliner.h +++ b/libyul/optimiser/ExpressionInliner.h @@ -20,7 +20,7 @@ #pragma once #include -#include +#include #include #include diff --git a/libyul/optimiser/ExpressionJoiner.h b/libyul/optimiser/ExpressionJoiner.h index 2d680b5cb..643d62b0a 100644 --- a/libyul/optimiser/ExpressionJoiner.h +++ b/libyul/optimiser/ExpressionJoiner.h @@ -20,7 +20,7 @@ */ #pragma once -#include +#include #include #include diff --git a/libyul/optimiser/ExpressionSimplifier.h b/libyul/optimiser/ExpressionSimplifier.h index 83e82b2b1..fe3507f8e 100644 --- a/libyul/optimiser/ExpressionSimplifier.h +++ b/libyul/optimiser/ExpressionSimplifier.h @@ -20,7 +20,7 @@ #pragma once -#include +#include #include diff --git a/libyul/optimiser/ExpressionSplitter.h b/libyul/optimiser/ExpressionSplitter.h index e5b86adc5..d4d2b3f61 100644 --- a/libyul/optimiser/ExpressionSplitter.h +++ b/libyul/optimiser/ExpressionSplitter.h @@ -20,7 +20,7 @@ */ #pragma once -#include +#include #include #include diff --git a/libyul/optimiser/FullInliner.h b/libyul/optimiser/FullInliner.h index 161d19457..a8fe76c67 100644 --- a/libyul/optimiser/FullInliner.h +++ b/libyul/optimiser/FullInliner.h @@ -19,7 +19,7 @@ */ #pragma once -#include +#include #include #include diff --git a/libyul/optimiser/FunctionGrouper.h b/libyul/optimiser/FunctionGrouper.h index 508daf5d7..3b3f48a71 100644 --- a/libyul/optimiser/FunctionGrouper.h +++ b/libyul/optimiser/FunctionGrouper.h @@ -21,7 +21,7 @@ #pragma once -#include +#include namespace yul { diff --git a/libyul/optimiser/FunctionHoister.h b/libyul/optimiser/FunctionHoister.h index 3d53aa89f..310920696 100644 --- a/libyul/optimiser/FunctionHoister.h +++ b/libyul/optimiser/FunctionHoister.h @@ -21,7 +21,7 @@ #pragma once -#include +#include #include namespace yul diff --git a/libyul/optimiser/InlinableExpressionFunctionFinder.h b/libyul/optimiser/InlinableExpressionFunctionFinder.h index f64155dec..afde8a2a7 100644 --- a/libyul/optimiser/InlinableExpressionFunctionFinder.h +++ b/libyul/optimiser/InlinableExpressionFunctionFinder.h @@ -20,7 +20,7 @@ #pragma once -#include +#include #include #include diff --git a/libyul/optimiser/MainFunction.h b/libyul/optimiser/MainFunction.h index f4a643039..96acc0ac8 100644 --- a/libyul/optimiser/MainFunction.h +++ b/libyul/optimiser/MainFunction.h @@ -21,7 +21,7 @@ #pragma once -#include +#include namespace yul { diff --git a/libyul/optimiser/NameDispenser.h b/libyul/optimiser/NameDispenser.h index 1d31fd38d..664a52652 100644 --- a/libyul/optimiser/NameDispenser.h +++ b/libyul/optimiser/NameDispenser.h @@ -19,7 +19,7 @@ */ #pragma once -#include +#include #include diff --git a/libyul/optimiser/RedundantAssignEliminator.h b/libyul/optimiser/RedundantAssignEliminator.h index 014a7c77f..54d658234 100644 --- a/libyul/optimiser/RedundantAssignEliminator.h +++ b/libyul/optimiser/RedundantAssignEliminator.h @@ -21,7 +21,7 @@ #pragma once -#include +#include #include #include diff --git a/libyul/optimiser/SSATransform.h b/libyul/optimiser/SSATransform.h index 2f069284d..4cb62f238 100644 --- a/libyul/optimiser/SSATransform.h +++ b/libyul/optimiser/SSATransform.h @@ -20,7 +20,7 @@ */ #pragma once -#include +#include #include #include diff --git a/libyul/optimiser/SimplificationRules.h b/libyul/optimiser/SimplificationRules.h index 023a61f7d..16aaba045 100644 --- a/libyul/optimiser/SimplificationRules.h +++ b/libyul/optimiser/SimplificationRules.h @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include diff --git a/libyul/optimiser/Suite.h b/libyul/optimiser/Suite.h index 3f23ee9f9..795326b42 100644 --- a/libyul/optimiser/Suite.h +++ b/libyul/optimiser/Suite.h @@ -20,7 +20,7 @@ #pragma once -#include +#include #include #include diff --git a/libyul/optimiser/SyntacticalEquality.h b/libyul/optimiser/SyntacticalEquality.h index 46527a661..63c51b4fe 100644 --- a/libyul/optimiser/SyntacticalEquality.h +++ b/libyul/optimiser/SyntacticalEquality.h @@ -20,7 +20,7 @@ #pragma once -#include +#include #include diff --git a/libyul/optimiser/Utilities.h b/libyul/optimiser/Utilities.h index 11c9fa194..c543b1196 100644 --- a/libyul/optimiser/Utilities.h +++ b/libyul/optimiser/Utilities.h @@ -20,7 +20,7 @@ #pragma once -#include +#include namespace yul { diff --git a/libyul/optimiser/VarDeclPropagator.h b/libyul/optimiser/VarDeclPropagator.h index 7a68d3266..1908c2142 100644 --- a/libyul/optimiser/VarDeclPropagator.h +++ b/libyul/optimiser/VarDeclPropagator.h @@ -17,7 +17,7 @@ #pragma once -#include +#include #include #include #include