DebugInfo: Delete old subclasses of DIType
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfUnit.h
index 1f3bdf029c0412f50c2fe6fea34b1da477621434..e8fd13e574a61ca6d15a5a68fb43da602306cf03 100644 (file)
@@ -307,7 +307,7 @@ public:
   DIE *getOrCreateTypeDIE(const MDNode *N);
 
   /// \brief Get context owner's DIE.
-  DIE *createTypeDIE(DICompositeType Ty);
+  DIE *createTypeDIE(const MDCompositeType *Ty);
 
   /// \brief Get context owner's DIE.
   DIE *getOrCreateContextDIE(const MDScope *Context);
@@ -335,11 +335,11 @@ public:
 
   virtual DwarfCompileUnit &getCU() = 0;
 
-  void constructTypeDIE(DIE &Buffer, DICompositeType CTy);
+  void constructTypeDIE(DIE &Buffer, const MDCompositeType *CTy);
 
 protected:
   /// \brief Create new static data member DIE.
-  DIE *getOrCreateStaticMemberDIE(DIDerivedType DT);
+  DIE *getOrCreateStaticMemberDIE(const MDDerivedType *DT);
 
   /// Look up the source ID with the given directory and source file names. If
   /// none currently exists, create a new ID and insert it in the line table.
@@ -352,12 +352,13 @@ protected:
   }
 
 private:
-  void constructTypeDIE(DIE &Buffer, DIBasicType BTy);
-  void constructTypeDIE(DIE &Buffer, DIDerivedType DTy);
+  void constructTypeDIE(DIE &Buffer, const MDBasicType *BTy);
+  void constructTypeDIE(DIE &Buffer, const MDDerivedType *DTy);
+  void constructTypeDIE(DIE &Buffer, const MDSubroutineType *DTy);
   void constructSubrangeDIE(DIE &Buffer, DISubrange SR, DIE *IndexTy);
-  void constructArrayTypeDIE(DIE &Buffer, DICompositeType CTy);
-  void constructEnumTypeDIE(DIE &Buffer, DICompositeType CTy);
-  void constructMemberDIE(DIE &Buffer, DIDerivedType DT);
+  void constructArrayTypeDIE(DIE &Buffer, const MDCompositeType *CTy);
+  void constructEnumTypeDIE(DIE &Buffer, const MDCompositeType *CTy);
+  void constructMemberDIE(DIE &Buffer, const MDDerivedType *DT);
   void constructTemplateTypeParameterDIE(DIE &Buffer,
                                          DITemplateTypeParameter TP);
   void constructTemplateValueParameterDIE(DIE &Buffer,