7 #ifndef RETDEC_LLVMIR2HLL_SEMANTICS_SEMANTICS_IMPL_SUPPORT_GET_NAME_OF_PARAM_H
8 #define RETDEC_LLVMIR2HLL_SEMANTICS_SEMANTICS_IMPL_SUPPORT_GET_NAME_OF_PARAM_H
13 #include <unordered_map>
18 #define ADD_PARAM_NAME(funcName, paramPos, paramName) \
19 funcParamNamesMap[FuncParamPosPair(funcName, paramPos)] = paramName;
33 return std::hash<std::string>()(p.first) + p.second;
A library providing API for working with back-end IR.
std::unordered_map< FuncParamPosPair, std::string, FuncParamPosPairHasher > FuncParamNamesMap
Definition: get_name_of_param.h:40
std::optional< std::string > getNameOfParamFromMap(const std::string &funcName, unsigned paramPos, const FuncParamNamesMap &map)
Returns the name of the given parameter from the given map.
Definition: get_name_of_param.cpp:16
std::pair< std::string, unsigned > FuncParamPosPair
A pair of function name and parameter position.
Definition: get_name_of_param.h:26
Definition: archive_wrapper.h:19
A hashing functor for FuncParamPosPair.
Definition: get_name_of_param.h:31
std::size_t operator()(const FuncParamPosPair &p) const
Definition: get_name_of_param.h:32