mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-09-19 19:19:05 +01:00
oil: make AoT introspect noinline
This commit is contained in:
parent
67739840fe
commit
fcb50df611
@ -38,7 +38,7 @@ template <class T, Feature... Fs>
|
|||||||
IntrospectionResult __attribute__((weak)) introspectImpl(const T& objectAddr);
|
IntrospectionResult __attribute__((weak)) introspectImpl(const T& objectAddr);
|
||||||
|
|
||||||
template <typename T, Feature... Fs>
|
template <typename T, Feature... Fs>
|
||||||
IntrospectionResult introspect(const T& objectAddr) {
|
__attribute__((noinline)) IntrospectionResult introspect(const T& objectAddr) {
|
||||||
if (!introspectImpl<T, Fs...>)
|
if (!introspectImpl<T, Fs...>)
|
||||||
throw std::logic_error(
|
throw std::logic_error(
|
||||||
"OIL is expecting AoT compilation but it doesn't appear to have run.");
|
"OIL is expecting AoT compilation but it doesn't appear to have run.");
|
||||||
|
Loading…
Reference in New Issue
Block a user