Remove check for TRACETOOLS_LTTNG_ENABLED in header file
This commit is contained in:
parent
04adadf508
commit
baf90e00e9
1 changed files with 0 additions and 5 deletions
|
@ -27,7 +27,6 @@ const char * _get_symbol_funcptr(void * funcptr);
|
||||||
template<typename T, typename ... U>
|
template<typename T, typename ... U>
|
||||||
const char * get_symbol(std::function<T(U...)> f)
|
const char * get_symbol(std::function<T(U...)> f)
|
||||||
{
|
{
|
||||||
#if defined(TRACETOOLS_LTTNG_ENABLED) && !defined(_WIN32)
|
|
||||||
typedef T (fnType)(U...);
|
typedef T (fnType)(U...);
|
||||||
fnType ** fnPointer = f.template target<fnType *>();
|
fnType ** fnPointer = f.template target<fnType *>();
|
||||||
// If we get an actual address
|
// If we get an actual address
|
||||||
|
@ -37,10 +36,6 @@ const char * get_symbol(std::function<T(U...)> f)
|
||||||
}
|
}
|
||||||
// Otherwise we have to go through target_type()
|
// Otherwise we have to go through target_type()
|
||||||
return _demangle_symbol(f.target_type().name());
|
return _demangle_symbol(f.target_type().name());
|
||||||
#else
|
|
||||||
(void)f;
|
|
||||||
return "DISABLED__get_symbol";
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // TRACETOOLS__UTILS_HPP_
|
#endif // TRACETOOLS__UTILS_HPP_
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue