File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
test/tools/llvm-dwarfdump/X86 Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1930,22 +1930,18 @@ void DWARFVerifier::verifyNameIndexCompleteness(
1930
1930
static void extractCUsTus (DWARFContext &DCtx) {
1931
1931
// Abbrev DeclSet is shared beween the units.
1932
1932
for (auto &CUTU : DCtx.normal_units ()) {
1933
- if (CUTU->getVersion () < 5 )
1934
- continue ;
1935
1933
CUTU->getUnitDIE ();
1936
1934
CUTU->getBaseAddress ();
1937
1935
}
1938
1936
parallelForEach (DCtx.normal_units (), [&](const auto &CUTU) {
1939
- if (CUTU->getVersion () < 5 )
1940
- return ;
1941
1937
if (Error E = CUTU->tryExtractDIEsIfNeeded (false ))
1942
1938
DCtx.getRecoverableErrorHandler ()(std::move (E));
1943
1939
});
1944
1940
1945
1941
// Invoking getNonSkeletonUnitDIE() sets up all the base pointers for DWO
1946
1942
// Units. This is needed for getBaseAddress().
1947
1943
for (const auto &CU : DCtx.compile_units ()) {
1948
- if (!( CU->getVersion () >= 5 && CU-> getDWOId () ))
1944
+ if (!CU->getDWOId ())
1949
1945
continue ;
1950
1946
DWARFContext &NonSkeletonContext =
1951
1947
CU->getNonSkeletonUnitDIE ().getDwarfUnit ()->getContext ();
Original file line number Diff line number Diff line change 1
1
# This test generates a DW_TAG_structure_type with a linkage name. This linkage
2
2
# name will not be part of the accelerator table and the verifier should not
3
3
# complain about this.
4
- # Technically speaking this test is invalid because .debug_names is a DWARF 5 feature.
5
- # In this test the accelerator table is referencing DWARF4.
6
4
#
7
5
# DW_TAG_structure_type
8
6
# DW_AT_name ("C")
11
9
# RUN: llvm-mc %s -filetype obj -triple x86_64-unknown-linux-gnu -o %t.o
12
10
# RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s
13
11
# RUN: llvm-dwarfdump -debug-names %t.o | FileCheck %s --check-prefix ACCEL
14
- # RUN: llvm-dwarfdump -verify --verify-num-threads 1 - debug-names %t.o
12
+ # RUN: llvm-dwarfdump -verify -debug-names %t.o
15
13
16
14
# CHECK: DW_AT_name ("Bool")
17
15
# CHECK-NEXT: DW_AT_linkage_name ("$SSbD")
You can’t perform that action at this time.
0 commit comments