summaryrefslogtreecommitdiff
path: root/tools/standalone_miri/module_tree.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-05-15 21:25:47 +0800
committerJohn Hodge <tpg@mutabah.net>2018-05-15 21:25:47 +0800
commit55ea64451a81be2f797094c9a4140a7a98ba6b5d (patch)
tree2d05c8108701d660a8660a37c3c0fcbef2a8699e /tools/standalone_miri/module_tree.cpp
parentee65f12f4aeb27238c8a2fc07fbe84eceafdde26 (diff)
downloadmrust-55ea64451a81be2f797094c9a4140a7a98ba6b5d.tar.gz
Standalone MIRI - Split AllocationPtr into AllocationHandle and RelocationPtr
Diffstat (limited to 'tools/standalone_miri/module_tree.cpp')
-rw-r--r--tools/standalone_miri/module_tree.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/standalone_miri/module_tree.cpp b/tools/standalone_miri/module_tree.cpp
index ad41b33a..6a7a0b5f 100644
--- a/tools/standalone_miri/module_tree.cpp
+++ b/tools/standalone_miri/module_tree.cpp
@@ -151,13 +151,13 @@ bool Parser::parse_one()
auto a = Allocation::new_alloc( reloc_str.size() );
//a.alloc().set_tag();
- a.alloc().write_bytes(0, reloc_str.data(), reloc_str.size());
- s.val.allocation.alloc().relocations.push_back({ ofs, ::std::move(a) });
+ a->write_bytes(0, reloc_str.data(), reloc_str.size());
+ s.val.allocation->relocations.push_back({ ofs, RelocationPtr::new_alloc(::std::move(a)) });
}
else if( lex.next() == "::" || lex.next() == "<" )
{
auto reloc_path = parse_path();
- s.val.allocation.alloc().relocations.push_back({ ofs, AllocationPtr::new_fcn(reloc_path) });
+ s.val.allocation->relocations.push_back({ ofs, RelocationPtr::new_fcn(reloc_path) });
}
else
{