/* context.h - Holder for global state
- Copyright (C) 2013 Free Software Foundation, Inc.
+ Copyright (C) 2013-2014 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
context of state. */
class context
{
public:
+ context ();
+
+ /* The flag shows if there are symbols to be streamed for offloading. */
+ bool have_offload;
+
+ /* Pass-management. */
+
+ 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 *m_passes;
- /* Currently empty. */
+ /* Dump files. */
+ dump_manager *m_dumps;
}; // class context