mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
DwarfCompileUnit: Add type safety to CompileUnit::getNode by returning DICompileUnit instead of a raw MDNode*.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194895 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
942431fa71
commit
7b86771094
@ -101,7 +101,7 @@ public:
|
||||
// Accessors.
|
||||
unsigned getUniqueID() const { return UniqueID; }
|
||||
uint16_t getLanguage() const { return Node.getLanguage(); }
|
||||
const MDNode *getNode() const { return Node; }
|
||||
DICompileUnit getNode() const { return Node; }
|
||||
DIE *getCUDie() const { return CUDie.get(); }
|
||||
const StringMap<DIE *> &getGlobalNames() const { return GlobalNames; }
|
||||
const StringMap<DIE *> &getGlobalTypes() const { return GlobalTypes; }
|
||||
|
@ -2950,12 +2950,11 @@ void DwarfDebug::emitDebugMacInfo() {
|
||||
CompileUnit *DwarfDebug::constructSkeletonCU(const CompileUnit *CU) {
|
||||
|
||||
DIE *Die = new DIE(dwarf::DW_TAG_compile_unit);
|
||||
CompileUnit *NewCU =
|
||||
new CompileUnit(CU->getUniqueID(), Die, DICompileUnit(CU->getNode()), Asm,
|
||||
this, &SkeletonHolder);
|
||||
CompileUnit *NewCU = new CompileUnit(CU->getUniqueID(), Die, CU->getNode(),
|
||||
Asm, this, &SkeletonHolder);
|
||||
|
||||
NewCU->addLocalString(Die, dwarf::DW_AT_GNU_dwo_name,
|
||||
DICompileUnit(CU->getNode()).getSplitDebugFilename());
|
||||
CU->getNode().getSplitDebugFilename());
|
||||
|
||||
// Relocate to the beginning of the addr_base section, else 0 for the
|
||||
// beginning of the one for this compile unit.
|
||||
|
Loading…
Reference in New Issue
Block a user