]> granicus.if.org Git - llvm/commit
Force RegisterStandardPasses to construct std::function in the IPO library.
authorFrederich Munch <colsebas@hotmail.com>
Tue, 13 Jun 2017 16:48:41 +0000 (16:48 +0000)
committerFrederich Munch <colsebas@hotmail.com>
Tue, 13 Jun 2017 16:48:41 +0000 (16:48 +0000)
commit4ed42e9451bd7914c60672eb5beebc5c14a0122c
tree44e9387eaa3a57e52b625e2038363de93940f338
parent7cc2615d1bd1b62b02c0d35f677b981dd77f73ef
Force RegisterStandardPasses to construct std::function in the IPO library.

Summary: Fixes an issue using RegisterStandardPasses from a statically linked object before PassManagerBuilder::addGlobalExtension is called from a dynamic library.

Reviewers: efriedma, theraven

Reviewed By: efriedma

Subscribers: mehdi_amini, mgorny, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305303 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/IPO/PassManagerBuilder.h
lib/Transforms/IPO/PassManagerBuilder.cpp
unittests/Support/DynamicLibrary/CMakeLists.txt
unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
unittests/Support/DynamicLibrary/PipSqueak.cxx