Simplify.

llvm-svn: 132560
This commit is contained in:
Devang Patel 2011-06-03 17:23:47 +00:00
parent fbff0e4f26
commit f1e2a7f0f0
1 changed files with 6 additions and 4 deletions

View File

@ -555,10 +555,12 @@ llvm::DIType CGDebugInfo::CreateType(const TypedefType *Ty,
// We don't set size information, but do specify where the typedef was
// declared.
unsigned Line = getLineNumber(Ty->getDecl()->getLocation());
llvm::DIType DbgTy =
DBuilder.createTypedef(Src, Ty->getDecl()->getName(), Unit, Line,
getContextDescriptor(cast<Decl>(Ty->getDecl()->getDeclContext())));
return DbgTy;
const TypedefNameDecl *TyDecl = Ty->getDecl();
llvm::DIDescriptor TydefContext =
getContextDescriptor(cast<Decl>(Ty->getDecl()->getDeclContext()));
return
DBuilder.createTypedef(Src, TyDecl->getName(), Unit, Line, TydefContext);
}
llvm::DIType CGDebugInfo::CreateType(const FunctionType *Ty,