[4/6] Use DISABLE_COPY_AND_ASSIGN in jit-logging.h

Message ID 20191205200852.19076-5-dmalcolm@redhat.com
State New
Headers show
Series
  • Use DISABLE_COPY_AND_ASSIGN
Related show

Commit Message

David Malcolm Dec. 5, 2019, 8:08 p.m.
gcc/jit/ChangeLog:
	* jit-logging.h (gcc::jit::logger): Use DISABLE_COPY_AND_ASSIGN.
	(gcc::jit::log_scope): Likewise.
	(gcc::jit::log_user): Likewise.
---
 gcc/jit/jit-logging.h | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.21.0

Patch

diff --git a/gcc/jit/jit-logging.h b/gcc/jit/jit-logging.h
index db0b6a531043..cc0036a10880 100644
--- a/gcc/jit/jit-logging.h
+++ b/gcc/jit/jit-logging.h
@@ -48,6 +48,8 @@  class logger
   void exit_scope (const char *scope_name);
 
 private:
+  DISABLE_COPY_AND_ASSIGN (logger);
+
   int m_refcount;
   FILE *m_f_out;
   int m_indent_level;
@@ -65,6 +67,8 @@  public:
   ~log_scope ();
 
  private:
+  DISABLE_COPY_AND_ASSIGN (log_scope);
+
   logger *m_logger;
   const char *m_name;
 };
@@ -134,6 +138,8 @@  class log_user
   void exit_scope (const char *scope_name);
 
  private:
+  DISABLE_COPY_AND_ASSIGN (log_user);
+
   logger *m_logger;
 };