0
0
Fork 0
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:
Jason Volk 2020-02-01 17:57:24 -08:00
parent 438dd21048
commit 4f96fafe67

View file

@ -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
{