aboutsummaryrefslogtreecommitdiffstats
path: root/libyul
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-11-28 23:19:22 +0800
committerChristian Parpart <christian@ethereum.org>2018-12-01 00:07:12 +0800
commitc48a5264be4221873fe02cac57f6a41a32010fea (patch)
tree441c9c554fb9521f41f4a143dc138a33afb03589 /libyul
parent22eff22492b2d569fe56b59763ddc1cd1cf9ccf4 (diff)
downloaddexon-solidity-c48a5264be4221873fe02cac57f6a41a32010fea.tar
dexon-solidity-c48a5264be4221873fe02cac57f6a41a32010fea.tar.gz
dexon-solidity-c48a5264be4221873fe02cac57f6a41a32010fea.tar.bz2
dexon-solidity-c48a5264be4221873fe02cac57f6a41a32010fea.tar.lz
dexon-solidity-c48a5264be4221873fe02cac57f6a41a32010fea.tar.xz
dexon-solidity-c48a5264be4221873fe02cac57f6a41a32010fea.tar.zst
dexon-solidity-c48a5264be4221873fe02cac57f6a41a32010fea.zip
liblangutil: SourceLocation: adds (shared) pointer to underlying CharStream source, eliminating sourceName
Also, adapted affecting code to those changes.
Diffstat (limited to 'libyul')
-rw-r--r--libyul/AsmParser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libyul/AsmParser.h b/libyul/AsmParser.h
index cea3b667..52166a20 100644
--- a/libyul/AsmParser.h
+++ b/libyul/AsmParser.h
@@ -56,11 +56,11 @@ protected:
r.location.start = position();
r.location.end = endPosition();
}
- if (!r.location.sourceName)
- r.location.sourceName = sourceName();
+ if (!r.location.source)
+ r.location.source = m_scanner->charStream();
return r;
}
- langutil::SourceLocation location() const { return {position(), endPosition(), sourceName()}; }
+ langutil::SourceLocation location() const { return {position(), endPosition(), m_scanner->charStream()}; }
Block parseBlock();
Statement parseStatement();