From 9c58f317da17de32afeefdd48acad8779a480362 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 20 Sep 2013 22:20:55 +0000 Subject: Migrate addGlobalName to the .cpp file as an intermediate step to further work. llvm-svn: 191113 --- llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 2638b3150f0..fe4a729e965 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -843,6 +843,11 @@ void CompileUnit::addType(DIE *Entity, DIType Ty, uint16_t Attribute) { addGlobalType(Ty); } +/// addGlobalName - Add a new global name to the compile unit. +void CompileUnit::addGlobalName(StringRef Name, DIE *Die) { + GlobalNames[Name] = Die; +} + /// addGlobalType - Add a new global type to the compile unit. /// void CompileUnit::addGlobalType(DIType Ty) { -- cgit v1.2.3