Restore "[ThinLTO] Use MD5 hash in function index." with fix
authorTeresa Johnson <tejohnson@google.com>
Wed, 10 Feb 2016 21:55:02 +0000 (21:55 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 10 Feb 2016 21:55:02 +0000 (21:55 +0000)
commite1164de5d0c9ae28a943d07eaf8e75f24bfb2d4a
tree7b7037f3104679a3f051dd24575543e75180b572
parent3e58a6a7b2b6f6af9ac2b091909e829fe5a21a99
Restore "[ThinLTO] Use MD5 hash in function index." with fix

This restores commit r260408, along with a fix for a bot failure.

The bot failure was caused by dereferencing a unique_ptr in the same
call instruction parameter list where it was passed via std::move.
Apparently due to luck this was not exposed when I built the compiler
with clang, only with gcc.

llvm-svn: 260442
14 files changed:
llvm/include/llvm/Bitcode/LLVMBitCodes.h
llvm/include/llvm/IR/Function.h
llvm/include/llvm/IR/FunctionInfo.h
llvm/include/llvm/IR/Module.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/IR/FunctionInfo.cpp
llvm/lib/IR/Module.cpp
llvm/lib/Transforms/IPO/FunctionImport.cpp
llvm/test/Bitcode/Inputs/source-filename.bc [new file with mode: 0644]
llvm/test/Bitcode/source-filename.test [new file with mode: 0644]
llvm/test/tools/gold/X86/thinlto.ll
llvm/test/tools/llvm-lto/thinlto.ll
llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp