From b85f0080e7c8188a998fb08b05944572f7b39b9e Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 27 May 2014 19:34:32 +0000 Subject: DebugInfo: Simplify solution to avoid DW_AT_artificial on inlined parameters. Originally committed in r207717, I clearly didn't look very closely at the code to understand how existing things were working... llvm-svn: 209680 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index c0badde3685..967c7b1b596 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -448,12 +448,7 @@ static std::unique_ptr constructVariableDIE(DwarfCompileUnit &TheCU, DbgVariable &DV, const LexicalScope &Scope, DIE *&ObjectPointer) { - AbstractOrInlined AOI = AOI_None; - if (Scope.isAbstractScope()) - AOI = AOI_Abstract; - else if (Scope.getInlinedAt()) - AOI = AOI_Inlined; - auto Var = TheCU.constructVariableDIE(DV, AOI); + auto Var = TheCU.constructVariableDIE(DV, Scope.isAbstractScope()); if (DV.isObjectPointer()) ObjectPointer = Var.get(); return Var; -- cgit v1.2.3