diff --git a/cbackend.cpp b/cbackend.cpp index 671a21ce..421fc404 100644 --- a/cbackend.cpp +++ b/cbackend.cpp @@ -2512,7 +2512,11 @@ void CWriter::printModuleTypes() { // Get all of the struct types used in the module. std::vector StructTypes; +#if defined(LLVM_3_0) || defined(LLVM_3_1) TheModule->findUsedStructTypes(StructTypes); +#else + TheModule->findUsedStructTypes(StructTypes, false); +#endif // Get all of the array types used in the module std::vector ArrayTypes; diff --git a/type.cpp b/type.cpp index 7ea49422..d007ec72 100644 --- a/type.cpp +++ b/type.cpp @@ -791,7 +791,7 @@ EnumType::GetDIType(llvm::DIDescriptor scope) const { 32 /* align in bits */, elementArray #if !defined(LLVM_3_0) && !defined(LLVM_3_1) - , llvm::DIType() + , llvm::DIType(), 0 #endif );