Fix dependency layering issues caused by r180112.
authorEric Christopher <echristo@gmail.com>
Tue, 23 Apr 2013 22:53:53 +0000 (22:53 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 23 Apr 2013 22:53:53 +0000 (22:53 +0000)
Patch by Tom Stellard. (Committed while he's afk per request)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180157 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/ExecutionEngine.h
include/llvm/Wrap.h
lib/ExecutionEngine/ExecutionEngineBindings.cpp

index 07135b69470034d6c7a79f7a68345fa0a0993b6b..9800759484047ef80dd55703f20a29e44fa09dbe 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef LLVM_EXECUTIONENGINE_EXECUTIONENGINE_H
 #define LLVM_EXECUTIONENGINE_EXECUTIONENGINE_H
 
+#include "llvm-c/ExecutionEngine.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/StringRef.h"
@@ -25,6 +26,7 @@
 #include "llvm/Support/ValueHandle.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Target/TargetOptions.h"
+#include "llvm/Wrap.h"
 #include <map>
 #include <string>
 #include <vector>
@@ -632,6 +634,8 @@ public:
   ExecutionEngine *create(TargetMachine *TM);
 };
 
+DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ExecutionEngine,    LLVMExecutionEngineRef)
+
 } // End llvm namespace
 
 #endif
index 11ea6e46c458fc3222f1ee31cab4f13e0fd34ea8..79790d4ea93326d8ff6548ba0e990e7a7f122d3b 100644 (file)
@@ -12,7 +12,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm-c/Core.h"
-#include "llvm-c/ExecutionEngine.h"
 #include "llvm/IR/BasicBlock.h"
 #include "llvm/IR/IRBuilder.h"
 #include "llvm/IR/Module.h"
@@ -68,7 +67,6 @@ namespace llvm {
   DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer,       LLVMMemoryBufferRef  )
   DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMContext,        LLVMContextRef       )
   DEFINE_SIMPLE_CONVERSION_FUNCTIONS(Use,                LLVMUseRef           )
-  DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ExecutionEngine,    LLVMExecutionEngineRef)
   DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassManagerBase,    LLVMPassManagerRef   )
   DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassRegistry,       LLVMPassRegistryRef  )
 
index f18cb0de9c39dd5fae299b30d34a93972ae29a8f..3e6dcdf5ba7be4d71e1b574892b7e6cdad504150 100644 (file)
@@ -16,7 +16,6 @@
 #include "llvm/ExecutionEngine/ExecutionEngine.h"
 #include "llvm/ExecutionEngine/GenericValue.h"
 #include "llvm/Support/ErrorHandling.h"
-#include "llvm/Wrap.h"
 #include <cstring>
 
 using namespace llvm;