Fix build with LLVM top of tree.
This commit is contained in:
@@ -2512,7 +2512,11 @@ void CWriter::printModuleTypes() {
|
|||||||
|
|
||||||
// Get all of the struct types used in the module.
|
// Get all of the struct types used in the module.
|
||||||
std::vector<StructType*> StructTypes;
|
std::vector<StructType*> StructTypes;
|
||||||
|
#if defined(LLVM_3_0) || defined(LLVM_3_1)
|
||||||
TheModule->findUsedStructTypes(StructTypes);
|
TheModule->findUsedStructTypes(StructTypes);
|
||||||
|
#else
|
||||||
|
TheModule->findUsedStructTypes(StructTypes, false);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Get all of the array types used in the module
|
// Get all of the array types used in the module
|
||||||
std::vector<ArrayType*> ArrayTypes;
|
std::vector<ArrayType*> ArrayTypes;
|
||||||
|
|||||||
2
type.cpp
2
type.cpp
@@ -791,7 +791,7 @@ EnumType::GetDIType(llvm::DIDescriptor scope) const {
|
|||||||
32 /* align in bits */,
|
32 /* align in bits */,
|
||||||
elementArray
|
elementArray
|
||||||
#if !defined(LLVM_3_0) && !defined(LLVM_3_1)
|
#if !defined(LLVM_3_0) && !defined(LLVM_3_1)
|
||||||
, llvm::DIType()
|
, llvm::DIType(), 0
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user