summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-11-01 19:26:05 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-11-01 19:26:05 +0000
commita5437b6bf6fd1c050cfd60ed1a22961ce4303ea3 (patch)
tree67eb3dfdb05ddd7c939936a774e29e90cb0c8fbd /llvm/lib
parent88e1c7393b8114423fa3c588635de69b9aa3148a (diff)
downloadbcm5719-llvm-a5437b6bf6fd1c050cfd60ed1a22961ce4303ea3.tar.gz
bcm5719-llvm-a5437b6bf6fd1c050cfd60ed1a22961ce4303ea3.zip
Make DwarfCompileUnit::Skeleton more narrowly typed (DwarfCompileUnit* instead of DwarfUnit*) now that it's specific to DwarfCompileUnit anyway.
llvm-svn: 221060
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
index 0fb3bb47379..f0799304316 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
+++ b/llvm/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<DwarfCompileUnit *>(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
OpenPOWER on IntegriCloud