This is an archive of the discontinued LLVM Phabricator instance.

[Support] Add WritableMemoryBuffer::getNewMemBuffer
ClosedPublic

Authored by labath on Dec 22 2017, 3:41 AM.

Details

Summary

The idea is that it would replace
(non-Writable)MemoryBuffer::getNewMemBuffer, which is quite useless
unless you const_cast its contents to write to it (which all (both)
callers of this function were doing). This patch also fixes one of the usages in
COFFWriter. After fixing the other usage in clang, I plan to delete the old
function.

Diff Detail

Repository
rL LLVM

Event Timeline

labath created this revision.Dec 22 2017, 3:41 AM
dblaikie accepted this revision.Dec 22 2017, 2:50 PM

Seems good to me

This revision is now accepted and ready to land.Dec 22 2017, 2:50 PM
This revision was automatically updated to reflect the committed changes.