diff options
author | Devang Patel <dpatel@apple.com> | 2011-06-03 17:23:47 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-06-03 17:23:47 +0000 |
commit | f1e2a7f0f0f7a65f280f52b9d9328da86d35f537 (patch) | |
tree | 0ea3a1f71afa63634aa95b691d8918cc5f5e5d67 /clang/lib/CodeGen | |
parent | fbff0e4f26bc3e9face0081bc8b005e810fe8989 (diff) | |
download | bcm5719-llvm-f1e2a7f0f0f7a65f280f52b9d9328da86d35f537.tar.gz bcm5719-llvm-f1e2a7f0f0f7a65f280f52b9d9328da86d35f537.zip |
Simplify.
llvm-svn: 132560
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 7f81d30c677..98d30db647d 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -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, |