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/Compiler.h b/lib/ExecutionEngine/Compiler.h
index 20dcd9e..2d4faf7 100644
--- a/lib/ExecutionEngine/Compiler.h
+++ b/lib/ExecutionEngine/Compiler.h
@@ -50,6 +50,7 @@
namespace bcc {
class ScriptCompiled;
+ struct CompilerOption;
class Compiler {
private:
@@ -151,7 +152,7 @@
int linkModule(llvm::Module *module);
- int compile(bool compileOnly);
+ int compile(CompilerOption &option);
char const *getErrorMessage() {
return mError.c_str();