Update for LLVM 3.2dev API change

This commit is contained in:
Matt Pharr
2012-05-22 15:53:14 -07:00
parent 99f57cfda6
commit 7dd4d6c75e

View File

@@ -2583,7 +2583,12 @@ ReferenceType::GetDIType(llvm::DIDescriptor scope) const {
}
llvm::DIType diTargetType = targetType->GetDIType(scope);
#if defined(LLVM_3_0) || defined(LLVM_3_1)
return m->diBuilder->createReferenceType(diTargetType);
#else
return m->diBuilder->createReferenceType(llvm::dwarf::DW_TAG_reference_type,
diTargetType);
#endif
}