This was just creating unused labels for .text when the module had no
functions.
llvm-svn: 231694
// Provides a unique id per text section.
DenseMap<const MCSection *, SmallVector<SymbolCU, 8>> SectionMap;
- // Prime section data.
- SectionMap[Asm->getObjFileLowering().getTextSection()];
-
// Filter labels by section.
for (const SymbolCU &SCU : ArangeLabels) {
if (SCU.Sym->isInSection()) {
; RUN: llc -generate-arange-section < %s | FileCheck %s
+; CHECK: .Ldebug_end0:
+; CHECK-NEXT: .section .debug_aranges,"",@progbits
+
; First CU
-; CHECK: .long 44 # Length of ARange Set
+; CHECK-NEXT: .long 44 # Length of ARange Set
; CHECK-NEXT: .short 2 # DWARF Arange version number
; CHECK-NEXT: .long .L.debug_info_begin0 # Offset Into Debug Info Section
; CHECK-NEXT: .byte 8 # Address Size (in bytes)