llvm-mirror/tools/verify-uselistorder
Rafael Espindola 225cf75bef Pass a MemoryBufferRef when we can avoid taking ownership.
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.

llvm-svn: 216488
2014-08-26 21:49:01 +00:00
..
CMakeLists.txt
LLVMBuild.txt
Makefile
verify-uselistorder.cpp Pass a MemoryBufferRef when we can avoid taking ownership. 2014-08-26 21:49:01 +00:00