diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index b3bf9bee73105f6f55d29b0b7620d734b4e72954..1c67f6b249e9085318c06486d9c0c43a438cccaf 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -353,7 +353,7 @@ private: DIEEntry *createDIEEntry(DIE *Entry); /// resolve - Look in the DwarfDebug map for the MDNode that - /// corresponds to a scope reference. + /// corresponds to the reference. template T resolve(DIRef Ref) const { return DD->resolve(Ref); } diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index c2044ceee4bd071b951925720b599c9ca43854fd..c4c450d0d5f8111465dcf3a1a9b1870e60890252 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -713,9 +713,8 @@ public: /// Returns the Dwarf Version. unsigned getDwarfVersion() const { return DwarfVersion; } - /// Find the MDNode for the given scope reference. - template - T resolve(DIRef Ref) const { + /// Find the MDNode for the given reference. + template T resolve(DIRef Ref) const { return Ref.resolve(TypeIdentifierMap); }