Jakob Stoklund Olesen
26332f6f91
Share split_entity_name between lexer and sourcemap.
...
There's only one way of parsing entity names correctly.
2016-09-20 13:20:33 -07:00
Jakob Stoklund Olesen
622006ecc5
Remove the inst_locs vector in the parser.
...
Use the source map to track instruction locations instead.
The rewrite methods now take an AnyEntity argument as the location to
use for errors. This means that bad EBB references in jump tables are
now reported correctly.
2016-09-19 11:47:57 -07:00
Jakob Stoklund Olesen
d0f9f92317
Also record locations for tracked entities.
2016-09-19 11:29:55 -07:00
Jakob Stoklund Olesen
dd8e7df8ba
Add an internal MutableSourceMap trait.
...
Use the SourceMap for mapping during parsing too.
2016-09-19 11:13:11 -07:00
Jakob Stoklund Olesen
77264ead08
Add a SourceMap to libreader.
...
Give crate clients the possiblility of mapping source-level entity names
to proper entity references that are valid in the parsed function.
2016-09-16 12:14:23 -07:00