From: David Blaikie Date: Sat, 1 Nov 2014 19:26:05 +0000 (+0000) Subject: Make DwarfCompileUnit::Skeleton more narrowly typed (DwarfCompileUnit* instead of... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b2dae39d051d4e952dfd6efb8df3809da6ca0842;p=oota-llvm.git Make DwarfCompileUnit::Skeleton more narrowly typed (DwarfCompileUnit* instead of DwarfUnit*) now that it's specific to DwarfCompileUnit anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221060 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 0fb3bb47379..f0799304316 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -34,7 +34,7 @@ class DwarfCompileUnit : public DwarfUnit { unsigned stmtListIndex; /// Skeleton unit associated with this unit. - DwarfUnit *Skeleton; + DwarfCompileUnit *Skeleton; /// \brief Construct a DIE for the given DbgVariable without initializing the /// DbgVariable's DIE reference. @@ -46,7 +46,7 @@ public: DwarfDebug *DW, DwarfFile *DWU); DwarfCompileUnit *getSkeleton() const { - return static_cast(Skeleton); + return Skeleton; } void initStmtList(MCSymbol *DwarfLineSectionSym); @@ -155,7 +155,7 @@ public: } /// Set the skeleton unit associated with this unit. - void setSkeleton(DwarfUnit &Skel) { Skeleton = &Skel; } + void setSkeleton(DwarfCompileUnit &Skel) { Skeleton = &Skel; } }; } // end llvm namespace