]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/context.h
c++: Handle multiple aggregate overloads [PR95319].
[thirdparty/gcc.git] / gcc / context.h
index b8fb439f1af9d1d40ebc0f3165f416448297d10f..35390903ddb057a2f61a425f87235399d73cbe97 100644 (file)
@@ -1,5 +1,5 @@
 /* context.h - Holder for global state
-   Copyright (C) 2013-2014 Free Software Foundation, Inc.
+   Copyright (C) 2013-2020 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -32,9 +32,19 @@ class context
 {
 public:
   context ();
+  ~context ();
+
+  /* The flag shows if there are symbols to be streamed for offloading.  */
+  bool have_offload;
 
   /* Pass-management.  */
 
+  void set_passes (pass_manager *m)
+  {
+    gcc_assert (!m_passes);
+    m_passes = m;
+  }
+
   pass_manager *get_passes () { gcc_assert (m_passes); return m_passes; }
 
   /* Handling dump files.  */