/* context.h - Holder for global state
- Copyright (C) 2013 Free Software Foundation, Inc.
+ Copyright (C) 2013-2015 Free Software Foundation, Inc.
This file is part of GCC.
namespace gcc {
class pass_manager;
+class dump_manager;
/* GCC's internal state can be divided into zero or more
"parallel universe" of state; an instance of this class is one such
{
public:
context ();
+ ~context ();
+
+ /* The flag shows if there are symbols to be streamed for offloading. */
+ bool have_offload;
/* Pass-management. */
- pass_manager *get_passes () { gcc_assert (passes_); return passes_; }
+ pass_manager *get_passes () { gcc_assert (m_passes); return m_passes; }
+
+ /* Handling dump files. */
+
+ dump_manager *get_dumps () {gcc_assert (m_dumps); return m_dumps; }
private:
/* Pass-management. */
- pass_manager *passes_;
+ pass_manager *m_passes;
+
+ /* Dump files. */
+ dump_manager *m_dumps;
}; // class context