diff options
author | Richard Mitton <richard@codersnotes.com> | 2013-09-23 17:56:20 +0000 |
---|---|---|
committer | Richard Mitton <richard@codersnotes.com> | 2013-09-23 17:56:20 +0000 |
commit | eb46def978a60fd705cca3037feff5573122b404 (patch) | |
tree | 73466a34e49ec135896bbd648f52920e5e436847 /test/DebugInfo/X86 | |
parent | 9528b0e466ace36268abe9d011fffc67d831088c (diff) | |
download | external_llvm-eb46def978a60fd705cca3037feff5573122b404.zip external_llvm-eb46def978a60fd705cca3037feff5573122b404.tar.gz external_llvm-eb46def978a60fd705cca3037feff5573122b404.tar.bz2 |
Fixed debug_aranges handling for common symbols.
The size of common symbols is now tracked correctly, so they can be listed in the arange section without needing knowledge of other following symbols.
.comm (and .lcomm) do not indicate to the system assembler any particular section to use, so we have to treat them as having no section.
Test case update to account for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/X86')
-rw-r--r-- | test/DebugInfo/X86/dwarf-aranges.ll | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/DebugInfo/X86/dwarf-aranges.ll b/test/DebugInfo/X86/dwarf-aranges.ll index eae5c79..a2f0059 100644 --- a/test/DebugInfo/X86/dwarf-aranges.ll +++ b/test/DebugInfo/X86/dwarf-aranges.ll @@ -18,27 +18,28 @@ ; -- finish -- ; CHECK-HEADER: # ARange terminator - +; <text section> - it should have made one span covering all functions in this CU. ; CHECK-CODE: .short 2 # DWARF Arange version number ; CHECK-CODE: .quad .Lfunc_begin0 +; CHECK-CODE-NEXT: .Lset1 = .L.text_end-.Lfunc_begin0 ; CHECK-CODE: # ARange terminator +; <data section> - it should have made one span covering all vars in this CU. ; CHECK-DATA: .short 2 # DWARF Arange version number ; CHECK-DATA: .quad some_data ; CHECK-DATA-NEXT: -some_data -; CHECK-DATA-NEXT: .quad ; CHECK-DATA: # ARange terminator +; <common symbols> - it should have made one span for each symbol. ; CHECK-BSS: .short 2 # DWARF Arange version number ; CHECK-BSS: .quad some_bss -; CHECK-BSS-NEXT: -some_bss -; CHECK-BSS-NEXT: .quad +; CHECK-BSS-NEXT: .quad 4 ; CHECK-BSS: # ARange terminator +; <other sections> - it should have made one span covering all vars in this CU. ; CHECK-CUSTOM: .short 2 # DWARF Arange version number ; CHECK-CUSTOM: .quad some_other ; CHECK-CUSTOM-NEXT: -some_other -; CHECK-CUSTOM-NEXT: .quad ; CHECK-CUSTOM: # ARange terminator |