mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make the dialect available everywhere.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
namespace yul
|
||||
{
|
||||
struct Dialect;
|
||||
|
||||
/**
|
||||
* Optimiser component that modifies an AST in place, inlining functions that can be
|
||||
@@ -44,8 +45,8 @@ namespace yul
|
||||
class ExpressionInliner: public ASTModifier
|
||||
{
|
||||
public:
|
||||
ExpressionInliner(Block& _block):
|
||||
m_block(_block)
|
||||
ExpressionInliner(Dialect const& _dialect, Block& _block):
|
||||
m_block(_block), m_dialect(_dialect)
|
||||
{}
|
||||
|
||||
void run();
|
||||
@@ -62,6 +63,7 @@ private:
|
||||
std::set<YulString> m_currentFunctions;
|
||||
|
||||
Block& m_block;
|
||||
Dialect const& m_dialect;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user