This is an archive of the discontinued LLVM Phabricator instance.

[lldb/FileSystem] Rename CreateDataBuffer -> CreateWritableDataBuffer, NFC
AcceptedPublic

Authored by vsk on Feb 14 2020, 5:34 PM.

Details

Summary

Some clients of lldb::FileSystem look like they are unintentionally
heap-allocating file contents.

This patch renames the CreateDataBuffer API to allow clients to express
intention more clearly. As a follow-up I propose adding a 'Readonly' API
that can use mmap().

rdar://53785446

Diff Detail

Event Timeline

vsk created this revision.Feb 14 2020, 5:34 PM
This revision is now accepted and ready to land.Feb 14 2020, 5:49 PM
labath accepted this revision.Feb 16 2020, 11:58 PM