Skip to content

Commit 2414fc7

Browse files
authored
Merge pull request #14726 from ethereum/allow-object-linking-for-semantic-tests
Remove unimplemented assert for fetching linked object
2 parents 2040884 + de4a5ee commit 2414fc7

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Diff for: libsolidity/interface/CompilerStack.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -935,8 +935,6 @@ std::string const& CompilerStack::yulIR(std::string const& _contractName) const
935935
if (m_stackState != CompilationSuccessful)
936936
solThrow(CompilerError, "Compilation was not successful.");
937937

938-
solUnimplementedAssert(!isExperimentalSolidity());
939-
940938
return contract(_contractName).yulIR;
941939
}
942940

@@ -955,8 +953,6 @@ std::string const& CompilerStack::yulIROptimized(std::string const& _contractNam
955953
if (m_stackState != CompilationSuccessful)
956954
solThrow(CompilerError, "Compilation was not successful.");
957955

958-
solUnimplementedAssert(!isExperimentalSolidity());
959-
960956
return contract(_contractName).yulIROptimized;
961957
}
962958

@@ -975,8 +971,6 @@ evmasm::LinkerObject const& CompilerStack::object(std::string const& _contractNa
975971
if (m_stackState != CompilationSuccessful)
976972
solThrow(CompilerError, "Compilation was not successful.");
977973

978-
solUnimplementedAssert(!isExperimentalSolidity());
979-
980974
return contract(_contractName).object;
981975
}
982976

@@ -985,8 +979,6 @@ evmasm::LinkerObject const& CompilerStack::runtimeObject(std::string const& _con
985979
if (m_stackState != CompilationSuccessful)
986980
solThrow(CompilerError, "Compilation was not successful.");
987981

988-
solUnimplementedAssert(!isExperimentalSolidity());
989-
990982
return contract(_contractName).runtimeObject;
991983
}
992984

@@ -996,8 +988,6 @@ std::string CompilerStack::assemblyString(std::string const& _contractName, Stri
996988
if (m_stackState != CompilationSuccessful)
997989
solThrow(CompilerError, "Compilation was not successful.");
998990

999-
solUnimplementedAssert(!isExperimentalSolidity());
1000-
1001991
Contract const& currentContract = contract(_contractName);
1002992
if (currentContract.evmAssembly)
1003993
return currentContract.evmAssembly->assemblyString(m_debugInfoSelection, _sourceCodes);

0 commit comments

Comments
 (0)