Declare RTS-private prototypes with __attribute__((visibility("hidden")))
[ghc-hetmet.git] / rts / Printer.h
index 52c1c3e..33fe6a8 100644 (file)
@@ -9,9 +9,17 @@
 #ifndef PRINTER_H
 #define PRINTER_H
 
+#pragma GCC visibility push(hidden)
+
 extern void       printPtr        ( StgPtr p );
 extern void       printObj        ( StgClosure *obj );
 
+extern char *      closure_type_names[];
+
+void                      info_hdr_type   ( StgClosure *closure, char *res );
+char  *                   info_type       ( StgClosure *closure );
+char  *                   info_type_by_ip ( StgInfoTable *ip );
+
 #ifdef DEBUG
 extern void        prettyPrintClosure (StgClosure *obj);
 extern void       printClosure    ( StgClosure *obj );
@@ -19,14 +27,12 @@ extern StgPtr      printStackObj   ( StgPtr sp );
 extern void        printStackChunk ( StgPtr sp, StgPtr spLim );
 extern void        printTSO        ( StgTSO *tso );
 
-void                      info_hdr_type   ( StgClosure *closure, char *res );
-char  *                   info_type       ( StgClosure *closure );
-char  *                   info_type_by_ip ( StgInfoTable *ip );
-
 extern void DEBUG_LoadSymbols( char *name );
 
 extern const char *lookupGHCName( void *addr );
 #endif
 
+#pragma GCC visibility pop
+
 #endif /* PRINTER_H */