Note function entry points.

This commit is contained in:
chriseth
2021-05-04 17:15:13 +02:00
parent faca036837
commit f9c94d7c42
33 changed files with 252 additions and 26 deletions
+11
View File
@@ -45,6 +45,17 @@ struct LinkerObject
/// to a list of offsets into the bytecode that refer to their values.
std::map<u256, std::pair<std::string, std::vector<size_t>>> immutableReferences;
struct FunctionDebugData
{
std::optional<size_t> bytecodeOffset;
std::optional<size_t> sourceID;
size_t params = {};
size_t returns = {};
};
/// Bytecode offsets of named tags like function entry points.
std::map<std::string, FunctionDebugData> functionDebugData;
/// Appends the bytecode of @a _other and incorporates its link references.
void append(LinkerObject const& _other);