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.
|
||||
if (PointeeTy.hasLocalQualifiers())
|
||||
return CreateQualifiedType(PointeeTy.getCanonicalType(), Unit);
|
||||
return CreateQualifiedType(PointeeTy, Unit);
|
||||
|
||||
if (const RecordType *RTy = dyn_cast<RecordType>(PointeeTy)) {
|
||||
RecordDecl *RD = RTy->getDecl();
|
||||
|
@ -685,10 +685,9 @@ llvm::DIType CGDebugInfo::CreateType(const FunctionType *Ty,
|
|||
if (isa<FunctionNoProtoType>(Ty))
|
||||
EltTys.push_back(DBuilder.createUnspecifiedParameter());
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
llvm::DIArray EltTypeArray = DBuilder.getOrCreateArray(EltTys);
|
||||
return DBuilder.createSubroutineType(Unit, EltTypeArray);
|
||||
|
|
Loading…
Reference in New Issue