Tracking ToT changes in DIBuilder interface
This commit is contained in:
29
type.cpp
29
type.cpp
@@ -2131,8 +2131,18 @@ StructType::GetDIType(llvm::DIDescriptor scope) const {
|
|||||||
|
|
||||||
llvm::DIArray elements = m->diBuilder->getOrCreateArray(elementLLVMTypes);
|
llvm::DIArray elements = m->diBuilder->getOrCreateArray(elementLLVMTypes);
|
||||||
llvm::DIFile diFile = pos.GetDIFile();
|
llvm::DIFile diFile = pos.GetDIFile();
|
||||||
return m->diBuilder->createStructType(scope, name, diFile, pos.first_line, currentSize,
|
return m->diBuilder->createStructType(
|
||||||
align, 0, elements);
|
scope,
|
||||||
|
name,
|
||||||
|
diFile,
|
||||||
|
pos.first_line, // Line number
|
||||||
|
currentSize, // Size in bits
|
||||||
|
align, // Alignment in bits
|
||||||
|
0, // Flags
|
||||||
|
#if !defined(LLVM_3_1) && !defined(LLVM_3_2)
|
||||||
|
llvm::DIType(), // DerivedFrom
|
||||||
|
#endif
|
||||||
|
elements);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2364,9 +2374,18 @@ llvm::DIType
|
|||||||
UndefinedStructType::GetDIType(llvm::DIDescriptor scope) const {
|
UndefinedStructType::GetDIType(llvm::DIDescriptor scope) const {
|
||||||
llvm::DIFile diFile = pos.GetDIFile();
|
llvm::DIFile diFile = pos.GetDIFile();
|
||||||
llvm::DIArray elements;
|
llvm::DIArray elements;
|
||||||
return m->diBuilder->createStructType(scope, name, diFile, pos.first_line,
|
return m->diBuilder->createStructType(
|
||||||
0 /* size */, 0 /* align */,
|
scope,
|
||||||
0 /* flags */, elements);
|
name,
|
||||||
|
diFile,
|
||||||
|
pos.first_line, // Line number
|
||||||
|
0, // Size
|
||||||
|
0, // Align
|
||||||
|
0, // Flags
|
||||||
|
#if !defined(LLVM_3_1) && !defined(LLVM_3_2)
|
||||||
|
llvm::DIType(), // DerivedFrom
|
||||||
|
#endif
|
||||||
|
elements);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user