changes to support createFunction() with DICompositeType argument in LLVM_3_4

This commit is contained in:
Ilia Filippov
2013-06-04 15:48:39 +04:00
parent 92f591b4bd
commit 560acd5017
2 changed files with 13 additions and 1 deletions

View File

@@ -2879,7 +2879,11 @@ FunctionType::GetDIType(llvm::DIDescriptor scope) const {
for (int i = 0; i < GetNumParameters(); ++i) {
const Type *t = GetParameterType(i);
if (t == NULL)
#if defined(LLVM_3_4)
return llvm::DICompositeType();
#else
return llvm::DIType();
#endif
retArgTypes.push_back(t->GetDIType(scope));
}