Revert "Switch to use RSCompilerDriver."
This reverts commit fef9a1b0b772034b4f0894d1e2b29d1115617be0.
Conflicts:
lib/ExecutionEngine/RSCompiler.cpp
Change-Id: Ic6f3a3643e286a20799e1c7f03dee5d6c3683fef
diff --git a/lib/ExecutionEngine/BCCContext.cpp b/lib/ExecutionEngine/BCCContext.cpp
index 62995ed..892fd5a 100644
--- a/lib/ExecutionEngine/BCCContext.cpp
+++ b/lib/ExecutionEngine/BCCContext.cpp
@@ -19,6 +19,7 @@
#include <new>
#include "BCCContextImpl.h"
+#include "Compiler.h"
#include "DebugHelper.h"
#include "Source.h"
@@ -41,7 +42,10 @@
GlobalContext = NULL;
}
-BCCContext::BCCContext() : mImpl(new BCCContextImpl(*this)) { }
+BCCContext::BCCContext() : mImpl(new BCCContextImpl(*this)) {
+ // Initialize the LLVM compiler infrastructure.
+ Compiler::GlobalInitialization();
+}
BCCContext::~BCCContext() {
delete mImpl;