[LTO] Call InitLLVM from llvm-lto2
authorTeresa Johnson <tejohnson@google.com>
Tue, 16 Oct 2018 17:37:45 +0000 (17:37 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 16 Oct 2018 17:37:45 +0000 (17:37 +0000)
commit0bc6b7b81c79a81b977fa5b088dc13177200b380
tree37d40db3b9aa0d103b0f4006069bf5b8fc2e2f3c
parent9b6d9f2a6227eb13721fcffabd624ee0cccde4c1
[LTO] Call InitLLVM from llvm-lto2

Summary:
D45602 added this to most tools, including llvm-lto, but not to
llvm-lto2. Add it there and test that it works in both lto tools.

Reviewers: ruiu

Subscribers: mehdi_amini, inglorion, eraman, steven_wu, dexonsmith, llvm-commits

Differential Revision: https://reviews.llvm.org/D53330

llvm-svn: 344631
llvm/test/ThinLTO/X86/deadstrip.ll
llvm/tools/llvm-lto2/llvm-lto2.cpp