From f85bdbe6e78bd5905d37b1cb6bb6175afb83a23a Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Mon, 19 Jul 2021 11:44:31 +1000 Subject: [PATCH] Clean up some forward declaration warnings --- src/pyjion/codemodel.h | 2 +- src/pyjion/instructions.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyjion/codemodel.h b/src/pyjion/codemodel.h index 2f22eafaf..0ac86fc53 100644 --- a/src/pyjion/codemodel.h +++ b/src/pyjion/codemodel.h @@ -151,7 +151,7 @@ class JITMethod : public BaseMethod { m_addr = addr; } - JITMethod(BaseModule *module, CorInfoType returnType, vector params, void* addr, + JITMethod(BaseModule *module, CorInfoType returnType, vector params, void* addr, const vector>& sequencePoints, const vector>& callPoints) : JITMethod(module, returnType, std::move(params), addr){ diff --git a/src/pyjion/instructions.h b/src/pyjion/instructions.h index 36e8c8a55..4eedc1489 100644 --- a/src/pyjion/instructions.h +++ b/src/pyjion/instructions.h @@ -33,12 +33,12 @@ using namespace std; +class InterpreterStack; + #define SIZEOF_CODEUNIT sizeof(_Py_CODEUNIT) #define GET_OPARG(index) (py_oparg)_Py_OPARG(mByteCode[(index)/SIZEOF_CODEUNIT]) #define GET_OPCODE(index) (py_opcode)_Py_OPCODE(mByteCode[(index)/SIZEOF_CODEUNIT]) -struct InterpreterStack; // forward decl - enum EscapeTransition { // Boxed -> Boxed = NoEscape // Boxed -> Unboxed = Unbox