Fix build with LLVM top of tree.

This commit is contained in:
Matt Pharr
2012-06-05 12:28:05 -07:00
parent 1397dbdabc
commit 96aaf6d53b
2 changed files with 5 additions and 1 deletions

View File

@@ -2512,7 +2512,11 @@ void CWriter::printModuleTypes() {
// Get all of the struct types used in the module.
std::vector<StructType*> 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<ArrayType*> ArrayTypes;

View File

@@ -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
);