Introduce new Script class.
Script basically manages a source object to be compiled.
Refactor Renderscript stuffs out from class Script to RSScript and
extend RSScript from Script (IS-A relation.)
No functionality changed.
diff --git a/lib/ExecutionEngine/ScriptCompiled.h b/lib/ExecutionEngine/ScriptCompiled.h
index 8752aa3..e96dbe2 100644
--- a/lib/ExecutionEngine/ScriptCompiled.h
+++ b/lib/ExecutionEngine/ScriptCompiled.h
@@ -26,7 +26,7 @@
#include <bcc/bcc.h>
#include "Compiler.h"
-#include "Script.h"
+#include "RSScript.h"
namespace llvm {
class Module;
@@ -48,7 +48,7 @@
typedef std::list<uint32_t> ObjectSlotList;
private:
- Script *mpOwner;
+ RSScript *mpOwner;
Compiler mCompiler;
@@ -66,7 +66,7 @@
FuncInfoMap mEmittedFunctions;
public:
- ScriptCompiled(Script *owner)
+ ScriptCompiled(RSScript *owner)
: mpOwner(owner), mCompiler(this)
{
}