mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +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;
|
~scope_cycles() noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
inline //TODO: ???
|
||||||
|
#else
|
||||||
extern inline
|
extern inline
|
||||||
__attribute__((flatten, always_inline, gnu_inline, artificial))
|
__attribute__((flatten, always_inline, gnu_inline, artificial))
|
||||||
|
#endif
|
||||||
ircd::prof::scope_cycles::scope_cycles(uint64_t &result)
|
ircd::prof::scope_cycles::scope_cycles(uint64_t &result)
|
||||||
noexcept
|
noexcept
|
||||||
:result{result}
|
:result{result}
|
||||||
|
@ -45,8 +49,12 @@ noexcept
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
inline //TODO: ???
|
||||||
|
#else
|
||||||
extern inline
|
extern inline
|
||||||
__attribute__((flatten, always_inline, gnu_inline, artificial))
|
__attribute__((flatten, always_inline, gnu_inline, artificial))
|
||||||
|
#endif
|
||||||
ircd::prof::scope_cycles::~scope_cycles()
|
ircd::prof::scope_cycles::~scope_cycles()
|
||||||
noexcept
|
noexcept
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue