[ManagedStatic] Avoid putting function pointers in template args.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 29 May 2017 20:56:27 +0000 (20:56 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 29 May 2017 20:56:27 +0000 (20:56 +0000)
commit74de08031f5d31da055eead7af9e22411cd794b4
treefa73f0680d9c31dd171d0ae574b5175b49dba266
parentaf66659d6b6431b784c02f9ce6433062cc97c96c
[ManagedStatic] Avoid putting function pointers in template args.

This is super awkward, but GCC doesn't let us have template visible when
an argument is an inline function and -fvisibility-inlines-hidden is
used.

llvm-svn: 304175
llvm/include/llvm/Support/ManagedStatic.h
llvm/lib/Support/Timer.cpp
llvm/unittests/Support/ManagedStatic.cpp