From 14d7ca49c09bf9d0be0ff932fbfc42e9ca3dc9e6 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 20 Oct 2020 15:49:54 +0200 Subject: [PATCH] Rename function. --- libsolidity/codegen/YulUtilFunctions.cpp | 4 ++-- libsolidity/codegen/YulUtilFunctions.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libsolidity/codegen/YulUtilFunctions.cpp b/libsolidity/codegen/YulUtilFunctions.cpp index 051b4bf99..5a7d32b01 100644 --- a/libsolidity/codegen/YulUtilFunctions.cpp +++ b/libsolidity/codegen/YulUtilFunctions.cpp @@ -1462,7 +1462,7 @@ string YulUtilFunctions::clearStorageStructFunction(StructType const& _type) }); } -string YulUtilFunctions::copyArrayToStorage(ArrayType const& _fromType, ArrayType const& _toType) +string YulUtilFunctions::copyArrayToStorageFunction(ArrayType const& _fromType, ArrayType const& _toType) { solAssert( *_fromType.copyForLocation(_toType.location(), _toType.isPointer()) == dynamic_cast(_toType), @@ -2154,7 +2154,7 @@ string YulUtilFunctions::updateStorageValueFunction( )"); templ("functionName", functionName); templ("value", suffixedVariableNameList("value_", 0, _fromType.sizeOnStack())); - templ("copyArrayToStorage", copyArrayToStorage( + templ("copyArrayToStorage", copyArrayToStorageFunction( dynamic_cast(_fromType), dynamic_cast(_toType) )); diff --git a/libsolidity/codegen/YulUtilFunctions.h b/libsolidity/codegen/YulUtilFunctions.h index b84dad4f9..15b678393 100644 --- a/libsolidity/codegen/YulUtilFunctions.h +++ b/libsolidity/codegen/YulUtilFunctions.h @@ -188,7 +188,7 @@ public: /// @returns the name of a function that will copy array from calldata or memory to storage /// signature (to_slot, from_ptr) -> - std::string copyArrayToStorage(ArrayType const& _fromType, ArrayType const& _toType); + std::string copyArrayToStorageFunction(ArrayType const& _fromType, ArrayType const& _toType); /// Returns the name of a function that will convert a given length to the /// size in memory (number of storage slots or calldata/memory bytes) it