MCPcopy Create free account
hub / github.com/argotorg/solidity / assemblyString

Method assemblyString

libsolidity/interface/CompilerStack.cpp:1092–1101  ·  view source on GitHub ↗

TODO: cache this string

Source from the content-addressed store, hash-verified

1090
1091/// TODO: cache this string
1092std::string CompilerStack::assemblyString(std::string const& _contractName, StringMap const& _sourceCodes) const
1093{
1094 solAssert(m_stackState == CompilationSuccessful, "Compilation was not successful.");
1095
1096 Contract const& currentContract = contract(_contractName);
1097 if (currentContract.evmAssembly)
1098 return currentContract.evmAssembly->assemblyString(m_debugInfoSelection, _sourceCodes);
1099 else
1100 return std::string();
1101}
1102
1103/// TODO: cache the JSON
1104Json CompilerStack::assemblyJSON(std::string const& _contractName) const

Callers 3

importEVMAssemblyMethod · 0.45
compileSolidityMethod · 0.45
compileYulMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected