[llvm] r218719 - Omit DW_AT_inline under -gmlt to save a little more space.
David Blaikie
dblaikie at gmail.com
Tue Sep 30 16:29:16 PDT 2014
Author: dblaikie
Date: Tue Sep 30 18:29:16 2014
New Revision: 218719
URL: http://llvm.org/viewvc/llvm-project?rev=218719&view=rev
Log:
Omit DW_AT_inline under -gmlt to save a little more space.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/trunk/test/DebugInfo/Inputs/gmlt.ll
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=218719&r1=218718&r2=218719&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Sep 30 18:29:16 2014
@@ -526,7 +526,8 @@ void DwarfDebug::constructAbstractSubpro
DIDescriptor());
SPCU.applySubprogramAttributesToDefinition(SP, *AbsDef);
- SPCU.addUInt(*AbsDef, dwarf::DW_AT_inline, None, dwarf::DW_INL_inlined);
+ if (TheCU.getCUNode().getEmissionKind() != DIBuilder::LineTablesOnly)
+ SPCU.addUInt(*AbsDef, dwarf::DW_AT_inline, None, dwarf::DW_INL_inlined);
if (DIE *ObjectPointer = createAndAddScopeChildren(SPCU, Scope, *AbsDef))
SPCU.addDIEEntry(*AbsDef, dwarf::DW_AT_object_pointer, *ObjectPointer);
}
Modified: llvm/trunk/test/DebugInfo/Inputs/gmlt.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/gmlt.ll?rev=218719&r1=218718&r2=218719&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/Inputs/gmlt.ll (original)
+++ llvm/trunk/test/DebugInfo/Inputs/gmlt.ll Tue Sep 30 18:29:16 2014
@@ -50,7 +50,6 @@
; the absence of high_pc/low_pc/ranges and know that they just need it for
; retrieving the name of a concrete inlined instance
-; CHECK-NEXT: DW_AT_inline
; CHECK-NOT: {{DW_TAG|DW_AT|NULL}}
; Check that we only provide the minimal attributes on a subprogram to save space.
More information about the llvm-commits
mailing list