Rename Compiler::mCodeDataAddr -> ScriptCompiled::mContext.
diff --git a/lib/bcc/ScriptCompiled.h b/lib/bcc/ScriptCompiled.h
index 786865d..ce0ad9c 100644
--- a/lib/bcc/ScriptCompiled.h
+++ b/lib/bcc/ScriptCompiled.h
@@ -50,11 +50,14 @@
Compiler mCompiler;
- PragmaList mPragmas;
ExportVarList mExportVars;
ExportFuncList mExportFuncs;
+ PragmaList mPragmas;
+
EmittedFunctionsMapTy mEmittedFunctions;
+ char *mContext; // Context of BCC script (code and data)
+
public:
ScriptCompiled(Script *owner) : mpOwner(owner), mCompiler(this) {
}
@@ -102,6 +105,10 @@
BCCvoid **base,
BCCsizei *length);
+ char const *getContext() const {
+ return mContext;
+ }
+
void registerSymbolCallback(BCCSymbolLookupFn pFn, BCCvoid *pContext) {
mCompiler.registerSymbolCallback(pFn, pContext);
}