Print @src and @use-src locations in AsmPrinter

This commit is contained in:
Mathias Baumann
2021-08-03 15:29:52 +02:00
parent c89b46c55e
commit 2ee6c7be64
34 changed files with 1319 additions and 109 deletions
@@ -6,9 +6,11 @@ Optimized IR:
* !USE AT YOUR OWN RISK! *
*=====================================================*/
/// @use-src 0:"ir_compiler_inheritance_nosubobjects/input.sol", 1:"#utility.yul"
object "C_7" {
code {
{
/// @src 0:82:117
mstore(64, 128)
if callvalue() { revert(0, 0) }
let _1 := datasize("C_7_deployed")
@@ -19,6 +21,7 @@ object "C_7" {
object "C_7_deployed" {
code {
{
/// @src 0:82:117
mstore(64, 128)
revert(0, 0)
}
@@ -35,9 +38,11 @@ Optimized IR:
* !USE AT YOUR OWN RISK! *
*=====================================================*/
/// @use-src 0:"ir_compiler_inheritance_nosubobjects/input.sol", 1:"#utility.yul"
object "D_10" {
code {
{
/// @src 0:118:137
mstore(64, 128)
if callvalue() { revert(0, 0) }
let _1 := datasize("D_10_deployed")
@@ -48,6 +53,7 @@ object "D_10" {
object "D_10_deployed" {
code {
{
/// @src 0:118:137
mstore(64, 128)
revert(0, 0)
}