]> granicus.if.org Git - clang/commitdiff
DebugInfo: Contrain the record type parameter for CollectRecordFields
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 16 Aug 2013 20:40:25 +0000 (20:40 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 16 Aug 2013 20:40:25 +0000 (20:40 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188575 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h

index fd6ce474747d2611dd649fd819388a2043c383b5..d1ee2f60c8e5bae60e7ef442e9579dd0900476fe 100644 (file)
@@ -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())
index 041fe492ab3962060ef36194bfd285c0a30fd272..39436e18a72d6781271bc1a9646a9a6d880f0fa3 100644 (file)
@@ -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,