From 08f7c8f1fec92d515390e91ef981d00880a1f3df Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 4 Oct 2013 23:49:26 +0000 Subject: Tighten up some type arguments to functions. Where we expect a scope, pass a scope. llvm-svn: 192002 --- llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (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 4969f833bcc..989f9e65ffb 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -745,7 +745,7 @@ void CompileUnit::addTemplateParams(DIE &Buffer, DIArray TParams) { } /// getOrCreateContextDIE - Get context owner's DIE. -DIE *CompileUnit::getOrCreateContextDIE(DIDescriptor Context) { +DIE *CompileUnit::getOrCreateContextDIE(DIScope Context) { if (Context.isType()) return getOrCreateTypeDIE(DIType(Context)); else if (Context.isNameSpace()) @@ -757,7 +757,7 @@ DIE *CompileUnit::getOrCreateContextDIE(DIDescriptor Context) { } /// addToContextOwner - Add Die into the list of its context owner's children. -void CompileUnit::addToContextOwner(DIE *Die, DIDescriptor Context) { +void CompileUnit::addToContextOwner(DIE *Die, DIScope Context) { assert(!Die->getParent()); if (DIE *ContextDIE = getOrCreateContextDIE(Context)) { if (Die->getParent()) { @@ -872,7 +872,7 @@ void CompileUnit::addGlobalName(StringRef Name, DIE *Die) { /// addGlobalType - Add a new global type to the compile unit. /// void CompileUnit::addGlobalType(DIType Ty) { - DIDescriptor Context = DD->resolve(Ty.getContext()); + DIScope Context = DD->resolve(Ty.getContext()); if (!Ty.getName().empty() && !Ty.isForwardDecl() && (!Context || Context.isCompileUnit() || Context.isFile() || Context.isNameSpace())) @@ -1398,7 +1398,7 @@ void CompileUnit::createGlobalVariableDIE(const MDNode *N) { if (!GV.isGlobalVariable()) return; - DIDescriptor GVContext = GV.getContext(); + DIScope GVContext = GV.getContext(); DIType GTy = GV.getType(); // If this is a static data member definition, some attributes belong -- cgit v1.2.3