forked from OSchip/llvm-project
Remove some unintended changes from my last patch.
llvm-svn: 161369
This commit is contained in:
parent
33becaa77a
commit
5b3ec2630a
|
@ -558,7 +558,7 @@ llvm::DIType CGDebugInfo::CreatePointeeType(QualType PointeeTy,
|
||||||
|
|
||||||
// Handle qualifiers.
|
// Handle qualifiers.
|
||||||
if (PointeeTy.hasLocalQualifiers())
|
if (PointeeTy.hasLocalQualifiers())
|
||||||
return CreateQualifiedType(PointeeTy.getCanonicalType(), Unit);
|
return CreateQualifiedType(PointeeTy, Unit);
|
||||||
|
|
||||||
if (const RecordType *RTy = dyn_cast<RecordType>(PointeeTy)) {
|
if (const RecordType *RTy = dyn_cast<RecordType>(PointeeTy)) {
|
||||||
RecordDecl *RD = RTy->getDecl();
|
RecordDecl *RD = RTy->getDecl();
|
||||||
|
@ -685,10 +685,9 @@ llvm::DIType CGDebugInfo::CreateType(const FunctionType *Ty,
|
||||||
if (isa<FunctionNoProtoType>(Ty))
|
if (isa<FunctionNoProtoType>(Ty))
|
||||||
EltTys.push_back(DBuilder.createUnspecifiedParameter());
|
EltTys.push_back(DBuilder.createUnspecifiedParameter());
|
||||||
else if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(Ty)) {
|
else if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(Ty)) {
|
||||||
for (unsigned i = 0, e = FPT->getNumArgs(); i != e; ++i) {
|
for (unsigned i = 0, e = FPT->getNumArgs(); i != e; ++i)
|
||||||
EltTys.push_back(getOrCreateType(FPT->getArgType(i), Unit));
|
EltTys.push_back(getOrCreateType(FPT->getArgType(i), Unit));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
llvm::DIArray EltTypeArray = DBuilder.getOrCreateArray(EltTys);
|
llvm::DIArray EltTypeArray = DBuilder.getOrCreateArray(EltTys);
|
||||||
return DBuilder.createSubroutineType(Unit, EltTypeArray);
|
return DBuilder.createSubroutineType(Unit, EltTypeArray);
|
||||||
|
|
Loading…
Reference in New Issue