diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 8 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 2 | 
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index d5eb8f397d9..cb0e89977c1 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -296,11 +296,11 @@ void CompileUnit::addDIEEntry(DIE *Die, dwarf::Attribute Attribute,  /// Create a DIE with the given Tag, add the DIE to its parent, and  /// call insertDIE if MD is not null. -DIE *CompileUnit::createAndAddDIE(unsigned Tag, DIE &Parent, const MDNode *MD) { +DIE *CompileUnit::createAndAddDIE(unsigned Tag, DIE &Parent, DIDescriptor N) {    DIE *Die = new DIE(Tag);    Parent.addChild(Die); -  if (MD) -    insertDIE(DIDescriptor(MD), Die); +  if (N) +    insertDIE(N, Die);    return Die;  } @@ -1541,7 +1541,7 @@ void CompileUnit::createGlobalVariableDIE(const MDNode *N) {      DIE *ContextDIE = getOrCreateContextDIE(GVContext);      // Add to map. -    VariableDIE = createAndAddDIE(GV.getTag(), *ContextDIE, N); +    VariableDIE = createAndAddDIE(GV.getTag(), *ContextDIE, GV);      // Add name and type.      addString(VariableDIE, dwarf::DW_AT_name, GV.getDisplayName()); diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 059f2be2104..884e51a7ef8 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -321,7 +321,7 @@ public:    /// Create a DIE with the given Tag, add the DIE to its parent, and    /// call insertDIE if MD is not null. -  DIE *createAndAddDIE(unsigned Tag, DIE &Parent, const MDNode *MD = NULL); +  DIE *createAndAddDIE(unsigned Tag, DIE &Parent, DIDescriptor N = DIDescriptor());    /// Compute the size of a header for this unit, not including the initial    /// length field.  | 

