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

Method loadGeneratedIR

libsolidity/interface/CompilerStack.cpp:855–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853}
854
855YulStack CompilerStack::loadGeneratedIR(std::string const& _ir) const
856{
857 YulStack stack(
858 m_evmVersion,
859 m_eofVersion,
860 m_optimiserSettings,
861 m_debugInfoSelection,
862 this, // _soliditySourceProvider
863 m_objectOptimizer
864 );
865 bool yulAnalysisSuccessful = stack.parseAndAnalyze("", _ir);
866 solAssert(
867 yulAnalysisSuccessful,
868 _ir + "\n\n"
869 "Invalid IR generated:\n" +
870 SourceReferenceFormatter::formatErrorInformation(
871 stack.errors(),
872 stack, // _charStreamProvider
873 false, // _colored
874 true // _withErrorIds
875 ) + "\n"
876 );
877
878 return stack;
879}
880
881std::vector<std::string> CompilerStack::contractNames() const
882{

Callers

nothing calls this directly

Calls 1

parseAndAnalyzeMethod · 0.45

Tested by

no test coverage detected