This is an archive of the discontinued LLVM Phabricator instance.

WritableMemoryBuffer
Needs ReviewPublic

Authored by zturner on Nov 17 2017, 1:05 PM.
This revision needs review, but all reviewers have resigned.

Details

Reviewers
labath
Summary

I'm explicitly not including llvm-commits on here because this patch isn't done. Unfortunately I have to switch gears because something high priority came up. You're welcome to finish this up if you want, otherwise I won't hold up the patch on the LLDB side. The quirk that I ran into is that llvm::sys::fs::openFileForWrite() does not have correct semantics when the file already exists. Currently it always overwrites the file. Fixing this is more work than I have time for at the moment :(

I might come back to this later if you don't feel up to it, but you're welcome to move forward with the LLDB patch to unblock yourself.

Event Timeline

zturner created this revision.Nov 17 2017, 1:05 PM
labath updated this revision to Diff 123429.Nov 17 2017, 2:50 PM
labath edited edge metadata.

You don't need to (and in fact, shouldn't) open the file read-write for this to
work. This is version that does that, but I don't feel like writing a
motivational CL description right now. I'll do it on monday if you don't beat
me to it.

labath resigned from this revision.Mar 3 2018, 5:46 PM