HomePhabricator

Re-land r329273: [Plugins] Add a slim plugin API to work together with the new…

Description

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.

Details

Committed
pfaffeApr 5 2018, 8:04 AM
Parents
rL329292: [clang-tidy] Remove google-runtime-member-string-references
Branches
Unknown
Tags
Unknown

Event Timeline

aivchenk added inline comments.
/llvm/trunk/lib/Passes/PassPlugin.cpp
35

This breaks pedantic build:

lib/Passes/PassPlugin.cpp:35:76: error: ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Werror=pedantic]

P.Info = reinterpret_cast<decltype(llvmGetPassPluginInfo) *>(getDetailsFn)();