diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-08-16 20:40:25 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-08-16 20:40:25 +0000 |
commit | ab255bb9cf0fd2814c374e3c2ed3fd7ff957ffdc (patch) | |
tree | eba328f95146f7cebe21b0399df9ee86974b3df1 /clang/lib/CodeGen | |
parent | 36362016d36983592319fa2cde6755525ed1f976 (diff) | |
download | bcm5719-llvm-ab255bb9cf0fd2814c374e3c2ed3fd7ff957ffdc.tar.gz bcm5719-llvm-ab255bb9cf0fd2814c374e3c2ed3fd7ff957ffdc.zip |
DebugInfo: Contrain the record type parameter for CollectRecordFields
This is the correct type (as is demonstrated by the fact that the caller
didn't need to change) & will be useful in a future patch.
llvm-svn: 188575
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 8 | ||||
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index fd6ce474747..d1ee2f60c8e 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -932,10 +932,10 @@ CollectRecordNormalField(const FieldDecl *field, uint64_t OffsetInBits, /// CollectRecordFields - A helper function to collect debug info for /// record fields. This is used while creating debug info entry for a Record. -void CGDebugInfo:: -CollectRecordFields(const RecordDecl *record, llvm::DIFile tunit, - SmallVectorImpl<llvm::Value *> &elements, - llvm::DIType RecordTy) { +void CGDebugInfo::CollectRecordFields(const RecordDecl *record, + llvm::DIFile tunit, + SmallVectorImpl<llvm::Value *> &elements, + llvm::DICompositeType RecordTy) { const CXXRecordDecl *CXXDecl = dyn_cast<CXXRecordDecl>(record); if (CXXDecl && CXXDecl->isLambda()) diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 041fe492ab3..39436e18a72 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -192,7 +192,7 @@ class CGDebugInfo { llvm::DIType RecordTy); void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile F, SmallVectorImpl<llvm::Value *> &E, - llvm::DIType RecordTy); + llvm::DICompositeType RecordTy); void CollectVTableInfo(const CXXRecordDecl *Decl, llvm::DIFile F, |