Fix build failure with MSVC, following r208680

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Artyom Skrobov 2014-05-13 11:16:22 +00:00
parent 8d9fa8f2dd
commit 56db241e8b

View File

@ -27,6 +27,9 @@
#include "llvm/Pass.h"
#include "llvm/Support/DataTypes.h"
// this needs to be outside of the namespace, to avoid conflict with llvm-c decl
typedef struct LLVMOpaqueTargetData *LLVMTargetDataRef;
namespace llvm {
class Value;
@ -445,8 +448,6 @@ public:
}
};
typedef struct LLVMOpaqueTargetData *LLVMTargetDataRef;
inline DataLayout *unwrap(LLVMTargetDataRef P) {
return reinterpret_cast<DataLayout*>(P);
}