summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2021-12-13 10:34:49 -0800
committerMed Ismail Bennani <medismail.bennani@gmail.com>2021-12-13 11:05:06 -0800
commit72e25978f93f0bf7577593aba9591c727526423c (patch)
treecbe54cbfd98c40d32edc7ed0c549c114ab7776be /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentbbfaf0b170b6070e08f1dc22419dfedc75b9a0fe (diff)
[lldb/API] Add SetDataWithOwnership method to SBData
This patch introduces a new method to SBData: SetDataWithOwnership. Instead of referencing the pointer to the data, this method copies the data buffer into lldb's heap memory. This can prevent having the underlying DataExtractor object point to freed/garbage-collected memory. Differential Revision: https://reviews.llvm.org/D115652 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions