mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Gracefully disable source maps for eof codegen.
This commit is contained in:
parent
8719f86ea9
commit
54bdaeee39
@ -827,6 +827,10 @@ string const* CompilerStack::sourceMapping(string const& _contractName) const
|
||||
if (m_stackState != CompilationSuccessful)
|
||||
solThrow(CompilerError, "Compilation was not successful.");
|
||||
|
||||
// TODO
|
||||
if (m_eofVersion.has_value())
|
||||
return nullptr;
|
||||
|
||||
Contract const& c = contract(_contractName);
|
||||
if (!c.sourceMapping)
|
||||
{
|
||||
@ -841,6 +845,10 @@ string const* CompilerStack::runtimeSourceMapping(string const& _contractName) c
|
||||
if (m_stackState != CompilationSuccessful)
|
||||
solThrow(CompilerError, "Compilation was not successful.");
|
||||
|
||||
// TODO
|
||||
if (m_eofVersion.has_value())
|
||||
return nullptr;
|
||||
|
||||
Contract const& c = contract(_contractName);
|
||||
if (!c.runtimeSourceMapping)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user