Skip to content

Cleanup vectorref#2811

Merged
axic merged 1 commit intodevelopfrom
cleanupvectorref
Aug 25, 2017
Merged

Cleanup vectorref#2811
axic merged 1 commit intodevelopfrom
cleanupvectorref

Conversation

@chriseth
Copy link
Contributor

Depends on #2810 and #2809

for (auto const& linkRef: linkReferences)
if (h160 const* address = matchLibrary(linkRef.second, _libraryAddresses))
address->ref().copyTo(ref(bytecode).cropped(linkRef.first, 20));
copy(address->data(), address->data() + 20, bytecode.begin() + linkRef.first);
Copy link
Contributor

@axic axic Aug 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume there is a test for this? (Any proper linking.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No special test for his, but the end-to-end-tests make heavy use of the linker.

@axic
Copy link
Contributor

axic commented Aug 25, 2017

Apart from that the vector_ref part looks ok.

@axic axic merged commit 0e2cbc8 into develop Aug 25, 2017
@axic axic deleted the cleanupvectorref branch August 25, 2017 19:14
@axic axic removed the in progress label Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants