diff options
author | Eric Christopher <echristo@apple.com> | 2012-01-26 06:20:57 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-01-26 06:20:57 +0000 |
commit | 5720033cc182a581a372779b68e81895f53c235a (patch) | |
tree | 640c129c5d44187c1c52411ad1bc8d39cd3d61dc /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | ba728e6d7d6339398c9e358c0f09e845679b1064 (diff) | |
download | bcm5719-llvm-5720033cc182a581a372779b68e81895f53c235a.tar.gz bcm5719-llvm-5720033cc182a581a372779b68e81895f53c235a.zip |
Remove another duplicated variable.
llvm-svn: 149047
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 6e4353e7689..7fd5daa1825 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1126,7 +1126,6 @@ llvm::DIType CGDebugInfo::getOrCreateRecordType(QualType RTy, /// CreateType - get structure or union type. llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty) { RecordDecl *RD = Ty->getDecl(); - llvm::DIFile Unit = getOrCreateFile(RD->getLocation()); // Get overall information about the record type for the debug info. llvm::DIFile DefUnit = getOrCreateFile(RD->getLocation()); @@ -1174,19 +1173,19 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty) { // Collect static variables with initializers. CollectRecordStaticVars(RD, FwdDecl); - CollectRecordFields(RD, Unit, EltTys, FwdDecl); + CollectRecordFields(RD, DefUnit, EltTys, FwdDecl); // Collect C++ information. const CXXRecordDecl *CXXDecl = dyn_cast<CXXRecordDecl>(RD); llvm::DIArray TParamsArray; if (CXXDecl) { - CollectCXXBases(CXXDecl, Unit, EltTys, FwdDecl); - CollectVTableInfo(CXXDecl, Unit, EltTys); - CollectCXXMemberFunctions(CXXDecl, Unit, EltTys, FwdDecl); - CollectCXXFriends(CXXDecl, Unit, EltTys, FwdDecl); + CollectCXXBases(CXXDecl, DefUnit, EltTys, FwdDecl); + CollectVTableInfo(CXXDecl, DefUnit, EltTys); + CollectCXXMemberFunctions(CXXDecl, DefUnit, EltTys, FwdDecl); + CollectCXXFriends(CXXDecl, DefUnit, EltTys, FwdDecl); if (const ClassTemplateSpecializationDecl *TSpecial = dyn_cast<ClassTemplateSpecializationDecl>(RD)) - TParamsArray = CollectCXXTemplateParams(TSpecial, Unit); + TParamsArray = CollectCXXTemplateParams(TSpecial, DefUnit); } LexicalBlockStack.pop_back(); @@ -1219,7 +1218,7 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty) { break; } ContainingType = - getOrCreateType(QualType(PBase->getTypeForDecl(), 0), Unit); + getOrCreateType(QualType(PBase->getTypeForDecl(), 0), DefUnit); } else if (CXXDecl->isDynamicClass()) ContainingType = FwdDecl; |