From cd88813dbfbb9d3e57803d17f702e65af94979e4 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 16 Dec 2011 23:40:18 +0000 Subject: When in a limited debug information situation if we can find the original declaration for the type then go ahead and use that, it's still smaller than creating an all new derived type. Part of rdar://10335756 and others. llvm-svn: 146779 --- clang/lib/CodeGen/CGDebugInfo.h | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/CodeGen/CGDebugInfo.h') diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 087cdd08a49..8831c535fa4 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -93,6 +93,7 @@ class CGDebugInfo { llvm::DIType CreateType(const MemberPointerType *Ty, llvm::DIFile F); llvm::DIType CreateType(const AtomicType *Ty, llvm::DIFile F); llvm::DIType CreateEnumType(const EnumDecl *ED); + llvm::DIType getTypeOrNull(const QualType); llvm::DIType getOrCreateMethodType(const CXXMethodDecl *Method, llvm::DIFile F); llvm::DIType getOrCreateFunctionType(const Decl *D, QualType FnType, -- cgit v1.2.3