src/hotspot/share/opto/compile.hpp
changeset 54960 e46fe26d7f77
parent 53632 d620a4a1d5ed
child 55105 9ad765641e8f
child 58678 9cf78a70fa4f
--- a/src/hotspot/share/opto/compile.hpp	Tue May 21 11:45:37 2019 +0200
+++ b/src/hotspot/share/opto/compile.hpp	Tue May 21 15:51:35 2019 +0200
@@ -1348,7 +1348,13 @@
   static void print_statistics() PRODUCT_RETURN;
 
   // Dump formatted assembly
-  void dump_asm(int *pcs = NULL, uint pc_limit = 0) PRODUCT_RETURN;
+#if defined(SUPPORT_OPTO_ASSEMBLY)
+  void dump_asm_on(outputStream* ost, int* pcs, uint pc_limit);
+  void dump_asm(int* pcs = NULL, uint pc_limit = 0) { dump_asm_on(tty, pcs, pc_limit); }
+#else
+  void dump_asm_on(outputStream* ost, int* pcs, uint pc_limit) { return; }
+  void dump_asm(int* pcs = NULL, uint pc_limit = 0) { return; }
+#endif
   void dump_pc(int *pcs, int pc_limit, Node *n);
 
   // Verify ADLC assumptions during startup