Skip to content
Snippets Groups Projects
Commit 952dd3f4 authored by Cheng Shao's avatar Cheng Shao
Browse files

rts: fix missing function prototypes in ClosureMacros.h

(cherry picked from commit 3ca72ad9)
parent e33a21a4
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,18 @@ EXTERN_INLINE StgHalfWord GET_TAG(const StgClosure *con)
-------------------------------------------------------------------------- */
#if defined(PROFILING)
/*
These prototypes are in RtsFlags.h. We can't include RtsFlags.h here
because that's a private header, but we do need these prototypes to
be duplicated here, otherwise there will be some
-Wimplicit-function-declaration compilation errors. Especially when
GHC compiles out-of-tree cbits that rely on SET_HDR in RTS API.
*/
bool doingLDVProfiling(void);
bool doingRetainerProfiling(void);
bool doingErasProfiling(void);
/*
The following macro works for both retainer profiling and LDV profiling. For
retainer profiling, we set 'trav' to 0, which is an invalid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment