aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/module.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/module.cc')
-rw-r--r--gcc/cp/module.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
index 948ca2a..a961e3b 100644
--- a/gcc/cp/module.cc
+++ b/gcc/cp/module.cc
@@ -65,6 +65,9 @@ along with GCC; see the file COPYING3. If not see
#include "intl.h"
#include "langhooks.h"
+/* What the current TU is. */
+unsigned module_kind;
+
module_state *
get_module (tree, module_state *, bool)
{
@@ -99,12 +102,23 @@ get_originating_module (tree, bool)
return 0;
}
+bool
+module_may_redeclare (tree)
+{
+ return true;
+}
+
void
set_instantiating_module (tree)
{
}
void
+set_defining_module (tree)
+{
+}
+
+void
set_originating_module (tree, bool)
{
}
@@ -120,3 +134,16 @@ preprocessed_module (cpp_reader *)
{
}
+void
+init_modules (cpp_reader *)
+{
+ /* Do not turn on yet. */
+ if (modules_p ())
+ fatal_error (input_location,
+ "Shtopp! What are you doing? This is not ready yet.");
+}
+
+void
+fini_modules ()
+{
+}