mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
DIBuilder: No functionality change.
Use the correct DIType when creating vector types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183484 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -349,8 +349,8 @@ namespace llvm {
|
|||||||
/// @param AlignInBits Alignment.
|
/// @param AlignInBits Alignment.
|
||||||
/// @param Ty Element type.
|
/// @param Ty Element type.
|
||||||
/// @param Subscripts Subscripts.
|
/// @param Subscripts Subscripts.
|
||||||
DIType createVectorType(uint64_t Size, uint64_t AlignInBits,
|
DICompositeType createVectorType(uint64_t Size, uint64_t AlignInBits,
|
||||||
DIType Ty, DIArray Subscripts);
|
DIType Ty, DIArray Subscripts);
|
||||||
|
|
||||||
/// createEnumerationType - Create debugging information entry for an
|
/// createEnumerationType - Create debugging information entry for an
|
||||||
/// enumeration.
|
/// enumeration.
|
||||||
|
@ -712,8 +712,8 @@ DICompositeType DIBuilder::createArrayType(uint64_t Size, uint64_t AlignInBits,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// createVectorType - Create debugging information entry for a vector.
|
/// createVectorType - Create debugging information entry for a vector.
|
||||||
DIType DIBuilder::createVectorType(uint64_t Size, uint64_t AlignInBits,
|
DICompositeType DIBuilder::createVectorType(uint64_t Size, uint64_t AlignInBits,
|
||||||
DIType Ty, DIArray Subscripts) {
|
DIType Ty, DIArray Subscripts) {
|
||||||
|
|
||||||
// A vector is an array type with the FlagVector flag applied.
|
// A vector is an array type with the FlagVector flag applied.
|
||||||
Value *Elts[] = {
|
Value *Elts[] = {
|
||||||
@ -731,7 +731,7 @@ DIType DIBuilder::createVectorType(uint64_t Size, uint64_t AlignInBits,
|
|||||||
ConstantInt::get(Type::getInt32Ty(VMContext), 0),
|
ConstantInt::get(Type::getInt32Ty(VMContext), 0),
|
||||||
Constant::getNullValue(Type::getInt32Ty(VMContext))
|
Constant::getNullValue(Type::getInt32Ty(VMContext))
|
||||||
};
|
};
|
||||||
return DIType(MDNode::get(VMContext, Elts));
|
return DICompositeType(MDNode::get(VMContext, Elts));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// createArtificialType - Create a new DIType with "artificial" flag set.
|
/// createArtificialType - Create a new DIType with "artificial" flag set.
|
||||||
|
Reference in New Issue
Block a user