Pass a && to getLazyBitcodeModule.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 3 Sep 2014 17:31:46 +0000 (17:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 3 Sep 2014 17:31:46 +0000 (17:31 +0000)
commit6d66a1cd2f6c47361bb9f294d7d2af1530f27914
treef0c10e05a61d6ae886434d89d3e11da15963b973
parent38a4f3bbec129553e4fd91ad3a69e9bbbbfa1ddf
Pass a && to getLazyBitcodeModule.

This forces callers to use std::move when calling it. It is somewhat odd to have
code with std::move that doesn't always move, but it is also odd to have code
without std::move that sometimes moves.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217049 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Bitcode/ReaderWriter.h
lib/Bitcode/Reader/BitReader.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/IRReader/IRReader.cpp
lib/Object/IRObjectFile.cpp
tools/gold/gold-plugin.cpp
unittests/Bitcode/BitReaderTest.cpp