Limit the visibility of the instruction list.
Change-Id: Ibcd860bddb085f3403f1d7236145be3d793be3b9
diff --git a/src/dex_instruction_visitor.h b/src/dex_instruction_visitor.h
index 172fc4f..ff45a4c 100644
--- a/src/dex_instruction_visitor.h
+++ b/src/dex_instruction_visitor.h
@@ -23,7 +23,9 @@
derived->Do_ ## cname(inst); \
break; \
}
+#include "src/dex_instruction_list.h"
DEX_INSTRUCTION_LIST(INSTRUCTION_CASE)
+#undef DEX_INSTRUCTION_LIST
#undef INSTRUCTION_CASE
default:
CHECK(true);
@@ -40,7 +42,9 @@
T* derived = static_cast<T*>(this); \
derived->Do_Default(inst); \
};
- DEX_INSTRUCTION_LIST(INSTRUCTION_VISITOR);
+#include "src/dex_instruction_list.h"
+ DEX_INSTRUCTION_LIST(INSTRUCTION_VISITOR)
+#undef DEX_INSTRUCTION_LIST
#undef INSTRUCTION_VISITOR
// The default instruction handler.