diff options
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
| -rw-r--r-- | cpu_ref/rsCpuScript.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp index 70c9d8f8..01a3e5a1 100644 --- a/cpu_ref/rsCpuScript.cpp +++ b/cpu_ref/rsCpuScript.cpp @@ -418,8 +418,11 @@ bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, return false; } - mCompilerDriver->setRSRuntimeLookupFunction(lookupRuntimeStub); - mCompilerDriver->setRSRuntimeLookupContext(this); + // Configure symbol resolvers (via compiler-rt and the RS runtime). + mRSRuntime.setLookupFunction(lookupRuntimeStub); + mRSRuntime.setContext(this); + mResolver.chainResolver(mCompilerRuntime); + mResolver.chainResolver(mRSRuntime); // Run any compiler setup functions we have been provided with. RSSetupCompilerCallback setupCompilerCallback = @@ -471,8 +474,8 @@ bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, // Skip the cache lookup } else if (!is_force_recompile()) { // Attempt to just load the script from cache first if we can. - exec = mCompilerDriver->loadScript(cacheDir, resName, - (const char *)bitcode, bitcodeSize); + exec = bcc::RSCompilerDriver::loadScript(cacheDir, resName, + (const char *)bitcode, bitcodeSize, mResolver); } if (exec == NULL) { @@ -480,9 +483,8 @@ bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, bitcodeSize, core_lib, useRSDebugContext, bccPluginName); if (built) { - exec = mCompilerDriver->loadScript(cacheDir, resName, - (const char *)bitcode, - bitcodeSize); + exec = bcc::RSCompilerDriver::loadScript(cacheDir, resName, + (const char *)bitcode, bitcodeSize, mResolver); } } |
