Introduce CompilerOption for compile() interface.

This provides flexibility. We can now setup different configuration
from the outside of compile() easily.

Change-Id: Ic4e593dd3c9f41de2fdfa492fecabd9f0e231463
diff --git a/lib/ExecutionEngine/ScriptCompiled.h b/lib/ExecutionEngine/ScriptCompiled.h
index 6a1a9e8..e4acc16 100644
--- a/lib/ExecutionEngine/ScriptCompiled.h
+++ b/lib/ExecutionEngine/ScriptCompiled.h
@@ -33,6 +33,8 @@
 }
 
 namespace bcc {
+  struct CompilerOption;
+
   class ScriptCompiled {
     friend class Compiler;
     friend class CodeEmitter;
@@ -87,8 +89,8 @@
       return mCompiler.linkModule(module);
     }
 
-    int compile(bool compileOnly) {
-      return mCompiler.compile(compileOnly);
+    int compile(CompilerOption &option) {
+      return mCompiler.compile(option);
     }
 
     char const *getCompilerErrorMessage() {