]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/context.h
c++: Handle multiple aggregate overloads [PR95319].
[thirdparty/gcc.git] / gcc / context.h
index e9113a4ca73b1587f22291d50457b789a17ad9e1..35390903ddb057a2f61a425f87235399d73cbe97 100644 (file)
@@ -1,5 +1,5 @@
 /* context.h - Holder for global state
-   Copyright (C) 2013-2017 Free Software Foundation, Inc.
+   Copyright (C) 2013-2020 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -39,6 +39,12 @@ public:
 
   /* 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.  */