From 87b9c49c72377f889f86418a8233577683878c29 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Sat, 5 Oct 2013 00:32:34 +0000 Subject: [PATCH] Fix one comment and update another. Slightly reformat. llvm-svn: 192016 --- llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 2 +- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index b3bf9bee7310..1c67f6b249e9 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 c2044ceee4bd..c4c450d0d5f8 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); } -- GitLab