mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-01-06 15:22:07 +00:00
[Debug Info] add a template class DITypedArray.
Typedef DIArray to DITypedArray<DIDescriptor>. Also typedef DITypeArray as DITypedArray<DITypeRef>. This is the third of a series of patches to handle type uniqueing of the type array for a subroutine type. This commit should have no functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214115 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -338,12 +338,6 @@ bool DIDescriptor::isImportedEntity() const {
|
||||
// Simple Descriptor Constructors and other Methods
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
unsigned DIArray::getNumElements() const {
|
||||
if (!DbgNode)
|
||||
return 0;
|
||||
return DbgNode->getNumOperands();
|
||||
}
|
||||
|
||||
/// replaceAllUsesWith - Replace all uses of the MDNode used by this
|
||||
/// type with the one in the passed descriptor.
|
||||
void DIType::replaceAllUsesWith(LLVMContext &VMContext, DIDescriptor D) {
|
||||
@@ -676,10 +670,7 @@ static void VerifySubsetOf(const MDNode *LHS, const MDNode *RHS) {
|
||||
#endif
|
||||
|
||||
/// \brief Set the array of member DITypes.
|
||||
void DICompositeType::setArrays(DIArray Elements, DIArray TParams) {
|
||||
assert((!TParams || DbgNode->getNumOperands() == 15) &&
|
||||
"If you're setting the template parameters this should include a slot "
|
||||
"for that!");
|
||||
void DICompositeType::setArraysHelper(MDNode *Elements, MDNode *TParams) {
|
||||
TrackingVH<MDNode> N(*this);
|
||||
if (Elements) {
|
||||
#ifndef NDEBUG
|
||||
|
||||
Reference in New Issue
Block a user