[patch] Pass a MemoryBufferRef when we can avoid taking ownership
rafael.espindola at gmail.com
Tue Aug 26 11:22:14 PDT 2014
The attached patch simplifies a few interfaces that don't need to take
ownership of a buffer.
For example, both parseAssembly and parseBitcodeFile will parse the
entire buffer before returning. There is no need to take ownership.
Using a MemoryBufferRef makes it obvious in the type signature that
there is no ownership transfer.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 17543 bytes
Desc: not available
More information about the llvm-commits