diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-18 18:55:41 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-18 18:55:41 +0000 |
commit | cc21bbde87de290fa09dc0468808594bab4203c7 (patch) | |
tree | 2e820e73c74b51b99b5b6808291e1dc3dd466efa /include | |
parent | ec2d8233296fd6d8f37880cd750db1f7225f6b3a (diff) | |
download | llvm-cc21bbde87de290fa09dc0468808594bab4203c7.tar.gz llvm-cc21bbde87de290fa09dc0468808594bab4203c7.tar.bz2 llvm-cc21bbde87de290fa09dc0468808594bab4203c7.tar.xz |
Remove BitcodeReader::setBufferOwned.
We do have use cases for the bitcode reader owning the buffer or not, but we
always know which one we have when we construct it.
It might be possible to simplify this further, but this is a step in the
right direction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Bitcode/ReaderWriter.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/ReaderWriter.h b/include/llvm/Bitcode/ReaderWriter.h index 4c194a638d..0d0d6a71ab 100644 --- a/include/llvm/Bitcode/ReaderWriter.h +++ b/include/llvm/Bitcode/ReaderWriter.h @@ -30,7 +30,8 @@ namespace llvm { /// deserialization of function bodies. If successful, this takes ownership /// of 'buffer. On error, this *does not* take ownership of Buffer. ErrorOr<Module *> getLazyBitcodeModule(MemoryBuffer *Buffer, - LLVMContext &Context); + LLVMContext &Context, + bool BufferOwned = true); /// getStreamedBitcodeModule - Read the header of the specified stream /// and prepare for lazy deserialization and streaming of function bodies. |