aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/CompilerStack.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-09-12 01:35:01 +0800
committerchriseth <c@ethdev.com>2015-09-12 01:35:01 +0800
commit70c0ed41290f3de001fed5b4f0f28993486ba445 (patch)
tree3d7e817bda1c0e522caf046c6aece51d31e343fd /libsolidity/CompilerStack.cpp
parent147830d1a3a2dc5748c11e41df6289655722cc4d (diff)
downloaddexon-solidity-70c0ed41290f3de001fed5b4f0f28993486ba445.tar
dexon-solidity-70c0ed41290f3de001fed5b4f0f28993486ba445.tar.gz
dexon-solidity-70c0ed41290f3de001fed5b4f0f28993486ba445.tar.bz2
dexon-solidity-70c0ed41290f3de001fed5b4f0f28993486ba445.tar.lz
dexon-solidity-70c0ed41290f3de001fed5b4f0f28993486ba445.tar.xz
dexon-solidity-70c0ed41290f3de001fed5b4f0f28993486ba445.tar.zst
dexon-solidity-70c0ed41290f3de001fed5b4f0f28993486ba445.zip
Commandline interface for the linker.
Diffstat (limited to 'libsolidity/CompilerStack.cpp')
-rw-r--r--libsolidity/CompilerStack.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/libsolidity/CompilerStack.cpp b/libsolidity/CompilerStack.cpp
index 3da982a4..70bb1b4c 100644
--- a/libsolidity/CompilerStack.cpp
+++ b/libsolidity/CompilerStack.cpp
@@ -181,6 +181,16 @@ eth::LinkerObject const& CompilerStack::compile(string const& _sourceCode, bool
return object();
}
+void CompilerStack::link(const std::map<string, h160>& _libraries)
+{
+ for (auto& contract: m_contracts)
+ {
+ contract.second.object.link(_libraries);
+ contract.second.runtimeObject.link(_libraries);
+ contract.second.cloneObject.link(_libraries);
+ }
+}
+
eth::AssemblyItems const* CompilerStack::assemblyItems(string const& _contractName) const
{
Contract const& currentContract = contract(_contractName);