]> granicus.if.org Git - clang/commitdiff
Remove unused parameter.
authorDevang Patel <dpatel@apple.com>
Thu, 9 Dec 2010 00:25:29 +0000 (00:25 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 9 Dec 2010 00:25:29 +0000 (00:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121326 91177308-0d34-0410-b5e6-96231b3b80d8

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

index f102f8b3a9521933dd21b7d8d06f9bfa7252040b..8f4266bab1c8a8658ce6d115baeb45f17d4db698 100644 (file)
@@ -347,8 +347,7 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) {
   return DbgTy;
 }
 
-llvm::DIType CGDebugInfo::CreateType(const ComplexType *Ty,
-                                     llvm::DIFile Unit) {
+llvm::DIType CGDebugInfo::CreateType(const ComplexType *Ty) {
   // Bit size, align and offset of the type.
   unsigned Encoding = llvm::dwarf::DW_ATE_complex_float;
   if (Ty->isComplexIntegerType())
@@ -1400,7 +1399,7 @@ llvm::DIType CGDebugInfo::CreateTypeNode(QualType Ty,
   case Type::ObjCInterface:
     return CreateType(cast<ObjCInterfaceType>(Ty), Unit);
   case Type::Builtin: return CreateType(cast<BuiltinType>(Ty));
-  case Type::Complex: return CreateType(cast<ComplexType>(Ty), Unit);
+  case Type::Complex: return CreateType(cast<ComplexType>(Ty));
   case Type::Pointer: return CreateType(cast<PointerType>(Ty), Unit);
   case Type::BlockPointer:
     return CreateType(cast<BlockPointerType>(Ty), Unit);
index 104349e085ebf4f187fbe3b3cb478eac09cb91fc..44c3508b43bcd637eec5fc185baaf6ab280f5407 100644 (file)
@@ -76,7 +76,7 @@ class CGDebugInfo {
 
   /// Helper functions for getOrCreateType.
   llvm::DIType CreateType(const BuiltinType *Ty);
-  llvm::DIType CreateType(const ComplexType *Ty, llvm::DIFile F);
+  llvm::DIType CreateType(const ComplexType *Ty);
   llvm::DIType CreateQualifiedType(QualType Ty, llvm::DIFile F);
   llvm::DIType CreateType(const TypedefType *Ty, llvm::DIFile F);
   llvm::DIType CreateType(const ObjCObjectPointerType *Ty,