diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-08-20 21:03:29 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-08-20 21:03:29 +0000 |
commit | 8d5e128bd48a9c481150251c9761ce7838e65e87 (patch) | |
tree | 0d47e10113a65904e836d220cbedc6706089ef41 /clang/lib/CodeGen/CGDebugInfo.h | |
parent | d8f336255731adfce67fbefcef214bd26b346814 (diff) | |
download | bcm5719-llvm-8d5e128bd48a9c481150251c9761ce7838e65e87.tar.gz bcm5719-llvm-8d5e128bd48a9c481150251c9761ce7838e65e87.zip |
DebugInfo: Simplify/clarify propagation of typemembers between declaration and definition
Based on code review feedback from Eric Christopher (on r188739) and
Adrian Prantl (r188642).
llvm-svn: 188829
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index d0e16bfe3eb..6ecc7e5fe10 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -116,7 +116,7 @@ class CGDebugInfo { llvm::DIType CreateType(const FunctionType *Ty, llvm::DIFile F); llvm::DIType CreateType(const RecordType *Ty, bool Declaration); llvm::DIType CreateTypeDefinition(const RecordType *Ty); - llvm::DIType CreateLimitedType(const RecordType *Ty); + llvm::DICompositeType CreateLimitedType(const RecordType *Ty); void CollectContainingType(const CXXRecordDecl *RD, llvm::DICompositeType CT); llvm::DIType CreateType(const ObjCInterfaceType *Ty, llvm::DIFile F); llvm::DIType CreateType(const ObjCObjectType *Ty, llvm::DIFile F); @@ -309,7 +309,8 @@ private: llvm::DIScope getCurrentContextDescriptor(const Decl *Decl); /// \brief Create a forward decl for a RecordType in a given context. - llvm::DIType getOrCreateRecordFwdDecl(const RecordDecl *, llvm::DIDescriptor); + llvm::DICompositeType getOrCreateRecordFwdDecl(const RecordDecl *, + llvm::DIDescriptor); /// createContextChain - Create a set of decls for the context chain. llvm::DIDescriptor createContextChain(const Decl *Decl); |