[PATCH] getStreamedBitcodeModule: take StreamingMemoryObject instead of DataStreamer

Jan Voung jvoung at chromium.org
Fri Apr 18 11:14:49 PDT 2014


jvoung added you to the CC list for the revision "getStreamedBitcodeModule: take StreamingMemoryObject instead of DataStreamer".

Currently, getStreamedBitcodeModule takes a DataStreamer and then
creates a StreamingMemoryObject for the BitcodeReader. That allows
flexibility in the supplied DataStreamer implementation but does
not allow flexibility in the StreamingMemoryObject implementation.

For example, the StreamingMemoryObject might want to cache bytes
in a thread-local way.

Make StreamingMemoryObject the interface instead so that both DataStreamer
and StreamingMemoryObject implementations can be customized.

http://reviews.llvm.org/D3372

Files:
  include/llvm/Bitcode/ReaderWriter.h
  include/llvm/Support/StreamableMemoryObject.h
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/Bitcode/Reader/BitcodeReader.h
  lib/Support/StreamableMemoryObject.cpp
  tools/llvm-dis/llvm-dis.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3372.1.patch
Type: text/x-patch
Size: 10883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140418/d3540cd6/attachment.bin>


More information about the llvm-commits mailing list