Extend debug info.

This commit is contained in:
chriseth 2021-08-31 16:23:16 +02:00
parent 0d7f6598e8
commit 42739b73b1

View File

@ -29,6 +29,7 @@
#include <liblangutil/SourceLocation.h>
#include <memory>
#include <optional>
namespace solidity::yul
{
@ -39,6 +40,8 @@ struct DebugData
{
explicit DebugData(langutil::SourceLocation _location): location(std::move(_location)) {}
langutil::SourceLocation location;
/// ID in the (Solidity) source AST.
std::optional<int64_t> astID;
static std::shared_ptr<DebugData const> create(langutil::SourceLocation _location = {})
{
return std::make_shared<DebugData const>(_location);