mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd::prof: Fix gnu_inline extern emission from clang.
This commit is contained in:
parent
438dd21048
commit
4f96fafe67
1 changed files with 8 additions and 0 deletions
|
@ -27,8 +27,12 @@ struct ircd::prof::scope_cycles
|
|||
~scope_cycles() noexcept;
|
||||
};
|
||||
|
||||
#ifdef __clang__
|
||||
inline //TODO: ???
|
||||
#else
|
||||
extern inline
|
||||
__attribute__((flatten, always_inline, gnu_inline, artificial))
|
||||
#endif
|
||||
ircd::prof::scope_cycles::scope_cycles(uint64_t &result)
|
||||
noexcept
|
||||
:result{result}
|
||||
|
@ -45,8 +49,12 @@ noexcept
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef __clang__
|
||||
inline //TODO: ???
|
||||
#else
|
||||
extern inline
|
||||
__attribute__((flatten, always_inline, gnu_inline, artificial))
|
||||
#endif
|
||||
ircd::prof::scope_cycles::~scope_cycles()
|
||||
noexcept
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue