From c3f3c5a6281cd41c94b7a43f957a18c24a75a6c6 Mon Sep 17 00:00:00 2001 From: xlauko <xlauko@mail.muni.cz> Date: Wed, 15 Jan 2025 10:57:34 +0100 Subject: [PATCH] treewide: Move ranges usings to common header. --- include/vast/Util/Common.hpp | 3 +++ lib/vast/Conversion/Parser/ToParser.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/vast/Util/Common.hpp b/include/vast/Util/Common.hpp index 287e869eb6..4e256b973a 100644 --- a/include/vast/Util/Common.hpp +++ b/include/vast/Util/Common.hpp @@ -104,4 +104,7 @@ namespace vast { using maybe_builder_callback_ref = std::optional< builder_callback_ref >; using builder_callback = std::function< void(mlir_builder &, loc_t) >; + using value_range = mlir::ValueRange; + using type_range = mlir::TypeRange; + } // namespace vast diff --git a/lib/vast/Conversion/Parser/ToParser.cpp b/lib/vast/Conversion/Parser/ToParser.cpp index aa52424153..76365065b4 100644 --- a/lib/vast/Conversion/Parser/ToParser.cpp +++ b/lib/vast/Conversion/Parser/ToParser.cpp @@ -232,9 +232,6 @@ namespace vast::conv { ).getResult(0); } - using value_range = mlir::ValueRange; - using type_range = mlir::TypeRange; - std::vector< mlir_value > convert_value_types( value_range values, type_range types, auto &rewriter ) {