aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/LinkerObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'libevmasm/LinkerObject.h')
-rw-r--r--libevmasm/LinkerObject.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libevmasm/LinkerObject.h b/libevmasm/LinkerObject.h
index 152487b4..92890803 100644
--- a/libevmasm/LinkerObject.h
+++ b/libevmasm/LinkerObject.h
@@ -50,6 +50,11 @@ struct LinkerObject
/// addresses by placeholders.
std::string toHex() const;
+ /// @returns a 36 character string that is used as a placeholder for the library
+ /// address (enclosed by `__` on both sides). The placeholder is the hex representation
+ /// of the first 18 bytes of the keccak-256 hash of @a _libraryName.
+ static std::string libraryPlaceholder(std::string const& _libraryName);
+
private:
static h160 const* matchLibrary(
std::string const& _linkRefName,