Re-land r329273: [Plugins] Add a slim plugin API to work together with the new PM
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Thu, 5 Apr 2018 15:04:13 +0000 (15:04 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Thu, 5 Apr 2018 15:04:13 +0000 (15:04 +0000)
commit131fb978b0602f758ab23691eb5239c914e923f5
treef4bb3b4343f019ef170536be58789d316f14cee2
parentbe92ce14e13708c96eac3fe6da8c7019e24b3e2a
Re-land r329273: [Plugins] Add a slim plugin API to work together with the new PM

Fix unittest: Do not link LLVM into the test plugin.
Additionally, remove an unrelated change that slipped in in r329273.

llvm-svn: 329293
llvm/include/llvm/Demangle/Compiler.h
llvm/include/llvm/Passes/PassPlugin.h [new file with mode: 0644]
llvm/lib/Passes/CMakeLists.txt
llvm/lib/Passes/PassPlugin.cpp [new file with mode: 0644]
llvm/tools/opt/NewPMDriver.cpp
llvm/unittests/CMakeLists.txt
llvm/unittests/Passes/CMakeLists.txt [new file with mode: 0644]
llvm/unittests/Passes/PluginsTest.cpp [new file with mode: 0644]
llvm/unittests/Passes/TestPlugin.cxx [new file with mode: 0644]
llvm/unittests/Passes/TestPlugin.h [new file with mode: 0644]